UI Library

Splitter

Left pane
Right pane
Prop Type Default Value Notes
ariaLabelstring?i18n 'splitter.resize'
Accessible name for the separator.
classNamestring?''
Extra classes for the separator handle.
invertbooleanfalse
Flips drag and arrow-key deltas for a pane anchored on the far side of the handle (right or bottom panes).
lineClassstring?''
Extra classes for the visible divider line.
maxnumber?—
Upper clamp for the divider position; unset follows the orientation/unit preset.
minnumber?—
Lower clamp for the divider position; unset follows the orientation/unit preset.
orientation'vertical' | 'horizontal''vertical'
Vertical splits left/right; horizontal splits top/bottom.
unit'px' | '%''px'
Unit for the value, drag delta, and arrow-key step.
valuenumber—
Divider position in pixels or percent; drive it from onChange (the seed reads it from scope).
getContainer() => HTMLElement | null——Explicit flex container that establishes the % basis; unset measures the wrapper’s parent.
onChange(value: number) => void——Fires while dragging and on arrow-key nudges.
onDragEnd() => void——Fires after a drag or keyboard nudge completes.