Skip to main content

Installation

Usage

Component API

ResizablePanelGroup

Container for resizable panels. Built on react-resizable-panels.
Props:
  • orientation - Layout direction ("horizontal" | "vertical")
  • onLayoutChange - Callback when panel sizes change
  • autoSaveId - ID for persisting layout to localStorage

ResizablePanel

Individual resizable panel.
Props:
  • defaultSize - Initial size as percentage string (e.g., "50%")
  • minSize - Minimum size as percentage string
  • maxSize - Maximum size as percentage string
  • collapsible - Whether panel can collapse
  • onCollapse - Callback when panel collapses
  • onExpand - Callback when panel expands

ResizableHandle

Draggable handle between panels.
Props:
  • 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

API Reference

See the react-resizable-panels documentation for complete API reference.