Resizable
stableResizable panel groups with draggable handles.
Basic usage
A
B
Examples
Three-panel layout
A sidebar, main content, and detail panel with draggable handles.
Sidebar
Main
Detail
Dashboard panels
Resizable panels support horizontal and vertical groups with keyboard handles.
Navigation
Main panel
Features
- Pointer + keyboard handles.
- Horizontal or vertical.
Installation
bash
pnpm dlx structyl add resizableAPI Reference
Resizable.Group
A set of resizable panels.
| Prop | Type | Default |
|---|---|---|
| direction | 'horizontal' | 'vertical'Resize axis. | 'horizontal' |
| onLayout | (sizes: number[]) => voidCalled when sizes change. | — |
Resizable.Panel
A single panel.
| Prop | Type | Default |
|---|---|---|
| id | stringUnique panel id. | — |
| defaultSize | numberInitial size (flex units). | — |
| minSize | numberMinimum size. | — |
Resizable.Handle
The drag handle between panels.
| Prop | Type | Default |
|---|---|---|
| between | [string, string]IDs of the panels on each side. | — |
| withHandle | booleanRender a visible grip. | — |