1. Docs
  2. Components
  3. Resizable

Resizable

Accessible resizable panel groups and layouts with keyboard support.

About

The Resizable component is built using the react-resizable-panels library.

Installation

Anatomy

Examples

Vertical

Use the orientation prop to set the orientation of the resizable panels.

Handle

Add <Resizable.Handle> inside <Resizable.Separator> to show a visible drag handle.

API Reference

Resizable.Root

PropTypeDefault
orientation
enum
"horizontal"
className
string

Resizable.Panel

PropTypeDefault
defaultSize
number | string
minSize
number | string
maxSize
number | string
collapsible
boolean
collapsedSize
number | string
onResize
function

Resizable.Separator

PropTypeDefault
children
ReactNode
className
string

Resizable.Handle

PropTypeDefault
children
ReactNode
className
string