Panels resized by dragging the line between them or with the arrow keys, horizontal, vertical or nested (react-resizable-panels).
Resizable horizontal
Install
npx shadcn add @syncrobotic/resizable Also installs: react-resizable-panels@^3, @syncrobotic/cn
Overview
A layout of panels whose sizes the user changes by dragging or with the keyboard.
When to use
- A map beside a robot list.
- A camera above an event log.
- An editor beside its preview.
Use something else
- A panel that slides in over content: Sheet.
- Fixed app chrome: the app-shell block.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Resizable vertical
Resizable with grip
Resizable three panels
Resizable nested
Resizable collapsible
Usage rules
- Set minSize so a panel never collapses into nothing by accident.
- withHandle on touch screens, where a thin line is hard to find.
Changelog
- 0.17.32026-11-19The grip is visible: --input with a card ring, and it no longer collapses to 1 px.
- 0.17.22026-11-19On a touch screen the handle's hit area is 44 px wide (48 in gloves).
- 0.9.02026-11-17New.