Resizable
UI SDK Resizable: panels with named separator handles that move with the pointer or arrow keys, collapse with Enter and can save their layout.
Example
Files
Editor
resizable-demo.tsxCopy code
Installation
Copy code
Usage
ImportCopy code
API reference
Resizable
ResizablePanel
ResizableHandle
| Prop | Type | Default |
|---|---|---|
aria-labelrequired | string | – |
withGrip | boolean | false |
Also takes every prop of UI SDK ResizableHandle.
Other exports
createResizableControllertype ResizableHandlePropstype ResizableControllertype ResizableSizetype ResizableStorageAccessibility
- Each handle is a separator named by aria-label that moves with arrow keys; Enter collapses a collapsible panel.
Agent actions
Agents set the layout as percentages, like "30,70".
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.