Installation
Usage
Component API
ResizablePanelGroup
Container for resizable panels. Built on react-resizable-panels.orientation- Layout direction ("horizontal"|"vertical")onLayoutChange- Callback when panel sizes changeautoSaveId- ID for persisting layout to localStorage
ResizablePanel
Individual resizable panel.defaultSize- Initial size as percentage string (e.g.,"50%")minSize- Minimum size as percentage stringmaxSize- Maximum size as percentage stringcollapsible- Whether panel can collapseonCollapse- Callback when panel collapsesonExpand- Callback when panel expands
ResizableHandle
Draggable handle between panels.withHandle- Shows a visible grip icon on the handle
Examples
Horizontal Layout
Default horizontal resizable panels:Vertical Layout
Vertical resizable panels:With Handle
Show a visible grip handle:Multiple Panels
Three or more panels:Nested Panels
Nested resizable layouts:With Constraints
Set minimum and maximum sizes:Persistence
Save panel layout to localStorage:Accessibility
- Fully keyboard accessible
- Arrow keys to resize panels
- Enter to reset to default size
- Proper ARIA labels and roles