Component
Resizable panel layouts with drag and keyboard support. Supports horizontal and vertical orientations with configurable min sizes.
View component changelogpreview
| Shortcut | Description |
|---|---|
ArrowLeft | Decreases the leading panel size for horizontal splitters. |
ArrowRight | Increases the leading panel size for horizontal splitters. |
ArrowUp | Decreases the leading panel size for vertical splitters. |
ArrowDown | Increases the leading panel size for vertical splitters. |
Home | Moves the handle to the minimum allowed size for the leading panel. |
End | Moves the handle to the maximum allowed size for the leading panel. |
| Reference | What Rad UI follows |
|---|---|
Uses a focusable separator handle with orientation, accessible naming, and range values for the controlled panel size. |
Import all parts of the component and piece them together
The root Splitter component.
| Prop | Type | Default |
|---|---|---|
orientation | enum | horizontal |
defaultSizes | number[] | -- |
minSizes | number[] | -- |
maxSizes | number[] | -- |
disabled | boolean | false |
dir | enum | -- |
onSizesChange | function | -- |