Toggle Sidebar B
AppearanceLight & dark mode D

Resizable

Split-pane layout with drag-to-resize handles. Compose ResizablePanelGroup with ResizablePanel children and ResizableHandle between them.

Default

Two-pane horizontal split.

Replay preview
One
Two

Vertical

Stack panels with direction="vertical".

Replay preview
Top
Bottom

With handle

Nested groups with visible drag handles via withHandle on each ResizableHandle.

Replay preview
Sidebar
Header
Content

Multiple handles

Three panels split by two visible handles, each with the withHandle grip.

Replay preview
Nav
Main
Aside

API Reference

ResizablePanelGroup

PropTypeDefaultDescription
direction"horizontal" | "vertical""horizontal"Split axis.
autoSaveIdstringPersist layout to localStorage under this key.
EventDescription
layoutFires with the array of panel sizes whenever the layout changes.

ResizablePanel

PropTypeDefaultDescription
defaultSizenumberInitial size percentage (0-100).
minSizenumberMinimum size percentage.
maxSizenumberMaximum size percentage.
collapsiblebooleanfalseAllow the panel to collapse past minSize.
EventDescription
resizeFires with the new size when this panel is resized.
collapseFires when the panel collapses.
expandFires when the panel expands from a collapsed state.

ResizableHandle

PropTypeDefaultDescription
withHandlebooleanfalseRender a visible drag handle marker.
EventDescription
draggingFires with a boolean as the handle starts and stops dragging.