Split Pane
A resizable panel that divides content into two adjustable sections.
1
2
3
4
This component is built on top of Allotment, a lightweight (250 KB unpacked size) and flexible solution for resizable panels. While shadcn/ui uses react-resizable-panel (1.01 MB unpacked size), we opted for Allotment which provides similar core functionality:
- Proportional layout support
- Snap-to-zero capability
- Panel visibility control
- Minimum and maximum size constraints
- Nested layout support
We chose Allotment after encountering the "Max Depth Exceeded" error with react-resizable-panels during drag operations in complex layouts (see issue #456).
Automatic Installation
This method is still working on progress, please use manual installation for now.
Manual Installation
Copy the code
Usage
Imports
Example
Browse the Storybook for more examples.
Anatomy
Edit on GitHub
Last updated on