- Docs
- Components
- Resizable
Resizable
Accessible resizable panel groups and layouts with keyboard support.
Preview
Code
About
The Resizable component is built using the react-resizable-panels library.
Installation
CLI
Manual
Anatomy
Examples
Vertical
Use the orientation prop to set the orientation of the resizable panels.
Preview
Code
Handle
Add <Resizable.Handle> inside <Resizable.Separator> to show a visible drag handle.
Preview
Code
API Reference
Resizable.Root
| Prop | Type | Default |
|---|---|---|
orientation | enum | "horizontal" |
className | string |
Resizable.Panel
| Prop | Type | Default |
|---|---|---|
defaultSize | number | string | |
minSize | number | string | |
maxSize | number | string | |
collapsible | boolean | |
collapsedSize | number | string | |
onResize | function |
Resizable.Separator
| Prop | Type | Default |
|---|---|---|
children | ReactNode | |
className | string |
Resizable.Handle
| Prop | Type | Default |
|---|---|---|
children | ReactNode | |
className | string |