Components/ResizablePanel

ResizablePanel

Drag-to-resize panel with min/max size constraints and callbacks.

Installation

Examples

Horizontal resize

Drag the handle between panes to resize.

Sidebar

Dashboard
Analytics
Settings

Main content

API Reference

PropTypeDefaultDescription
defaultSizenumberInitial size in px or %.
minSizenumberMinimum allowed size.
maxSizenumberMaximum allowed size.
direction'horizontal'|'vertical''horizontal'Resize axis.
onResize(size: number) => voidCalled with new size on drag.