Appearance
Splitter
SSplitter divides an area into panels with draggable dividers — the user sets the width/height of the sections (sidebar + content, editor + preview). The handles are keyboard accessible (arrow keys resize), and Reka keeps the ARIA attributes. Panels are described with the panels array, content goes into the panel-0, panel-1, … slots (or by name).
Basic usage
Vertical split
API
Props
| Name | Type | Default | Description |
|---|---|---|---|
panels* | {
name?: string;
defaultSize?: number;
minSize?: number;
maxSize?: number;
collapsible?: boolean
}[] | required | Panel definitions. A resize handle is inserted automatically between adjacent panels. |
direction | "vertical" | "horizontal" | "horizontal" | Split direction: horizontal places panels side by side, vertical stacks them. |