Toggle Sidebar B
header.lightDarkMode D

Resizable

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

Default

Two-pane horizontal split.

One
Two

Vertical

Stack panels with direction="vertical".

Top
Bottom

With handle

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

Sidebar
Header
Content

API Reference

Props, events, and slots for each sub-component.

ResizablePanelGroup

Props

PropTypeDefaultDescription
direction"horizontal" | "vertical""horizontal"Split axis.
autoSaveIdstringPersist layout to localStorage under this key.

Events

EventDescription
layoutFires with the array of panel sizes whenever the layout changes.

ResizablePanel

Props

PropTypeDefaultDescription
defaultSizenumberInitial size percentage (0-100).
minSizenumberMinimum size percentage.
maxSizenumberMaximum size percentage.
collapsiblebooleanfalseAllow the panel to collapse past minSize.

Events

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

Props

PropTypeDefaultDescription
withHandlebooleanfalseRender a visible drag handle marker.

Events

EventDescription
draggingFires with a boolean as the handle starts and stops dragging.