Resizable panel layouts with drag and keyboard support. Supports horizontal and vertical orientations with configurable min sizes.
import Splitter from "@radui/ui/Splitter"- Two or more panels with a draggable handle between them
- Arrow keys move the focused handle
- minSize and maxSize per panel; sizes are controlled or uncontrolled
- Horizontal or vertical; right-to-left aware
| 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 |
|---|---|
| Window Splitter pattern | 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 | — |