Resizable
Accessible resizable panel groups with keyboard support. Panel sizes use percentage strings (e.g. defaultSize="50%").
Handle
Pass withHandle on ResizableHandle for a visible grip.
Installation
CLI
Also needs
npm i lucide-react react-resizable-panels@^4Composition
structure
Usage
resizable.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| orientation | "horizontal" · "vertical" | "horizontal" | On `ResizablePanelGroup` — resize axis. |
| defaultSize | number · string | — | On `ResizablePanel` — initial size (prefer `"50%"`; bare numbers are pixels). |
| minSize | number · string | — | On `ResizablePanel` — minimum size constraint. |
| withHandle | boolean | false | On `ResizableHandle` — show a visible grip. |