Components
ResizablePanelGroup
Container that lays out resizable panels along a single axis.
Wraps react-resizable-panels Group, exposing shadcn's direction prop
(mapped to the library's orientation). Compose with ResizablePanel
children separated by ResizableHandle.
Usage
Best practices
Compose
ResizablePanelchildren separated byResizableHandle- a handle between panels is what makes them draggable.Set the axis with
direction(horizontal/vertical); it maps to the library'sorientation, which is intentionally not exposed.
Props
ResizableHandle
ResizablePanelGroup
Also exports
- const
resizableAnatomy - type
ResizableDirection - interface
ResizableHandleProps - component
ResizablePanel - interface
ResizablePanelGroupProps