Resizable
Split an area into panels that resize with a pointer or keyboard.
Basic usage
Give Root a usable width and height. Match the IDs in panels and Panel, then drag the divider or use the arrow keys while it is focused.
Details
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
Root.panels | { id, minSize?, maxSize?, collapsible? }[] | — |
Root.defaultSize / size | (number | string)[] | — |
Root.orientation | horizontal, vertical | horizontal |
Handle.id | beforeId:afterId | — |
Handle.withHandle | boolean | false |
Root.onResizeEnd | (details) => void | — |