State-tracked resizable layout.
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
Best for: Live percentage readouts in each pane, fed from the group layout callback into React state as the divider moves
When to use
- Split views that set a sidebar beside content or a header over a body, sized by dragging the divider
- Editor and IDE style workspaces of 3 or more panes, in one row or nested across both directions
- Layouts that read live pane sizes back into app state, such as a percentage readout
When not to use
- A complete product layout with navigation, header and content area already in place: use the App Shell blocks
- Task bars stretched along a timeline to change their start and end dates: use the Gantt blocks
- Table rows and columns that users reorder by hand or widen at the header edge: use the Drag & Drop blocks
Agent notes
setSizesstores the wholelayout, keyed by each panelid, so renameleftandrightin the ids and the readouts togetheronLayoutChangerunssetSizeson every pointer move of a drag; save a layout from onLayoutChanged, which fires once the pointer is released- The
sizesseed and the readout fallbacks repeat the 30 and 70 ofdefaultSize, so change all 3 places together - A number in
defaultSizeorminSizeis read as pixels, not percent; pass a string such as 30% when a panel should take a share of the group orientationvertical stacks the panels with horizontal dividers between them and horizontal sets them side by side; the v4 group has no direction prop- react-resizable-panels needs every Panel and Separator to be a direct DOM child of its Group, so never wrap a
ResizablePanelorResizableHandlein a div
Third-party API docs
- React Resizable Panels v4: API reference, docs, through shadcn Resizable (v4 names its parts Group, Panel and Separator (v3 docs say PanelGroup))
https://reui.io/components/resizable/c-resizable-10.mdget_example("c-resizable-10")npx shadcn@latest add @reui/c-resizable-10Shadcn Components in Resizable Size Tracking
About Shadcn Resizable Size Tracking
State-tracked resizable layout. Built with the Resizable component. A free, open source shadcn resizable example you can install with npx shadcn@latest add @reui/c-resizable-10 and edit as your own code.
What You Can Build With Shadcn Resizable Size Tracking
- Composes Resizable, so it drops into any project already using those components.
- Install it with the shadcn CLI: npx shadcn@latest add @reui/c-resizable-10
- Open source and free, with the full source on this page to copy or adapt.
More Shadcn Resizable Examples
- Horizontal Layout Horizontal resizable layout
- Vertical Layout Vertical resizable layout.
- Mixed Directions Nested mixed-direction resizable layout.
- Nested Grips Nested resizable
- Animated Pill Handle with animated pill indicator
- Spring Pill Handle pill with spring scale on drag
- Capsule Expansion Handle with large capsule expansion on drag
- Nested Pills Nested layout with animated pill handles
- Three Panels Three-panel layout with animated pill handles
Related Shadcn Component Categories
Open-source shadcn scroll area components for custom scroll regions, sidebar panes, and dense lists.
Open-source shadcn scrollspy components for docs navigation, active table of contents, and long-form sections.
Open-source shadcn select components for form selection, settings menus, and filter controls.
Open-source shadcn separator components for content grouping, toolbar dividers, and section breaks.
Open-source shadcn sheet components for slide-over details, side panels, and task flows.
Open-source shadcn sidebar components for app shells, collapsible side navigation, and dashboard layouts.
Frequently Asked Questions
When should I use Shadcn Resizable Size Tracking?
Use it for live percentage readouts in each pane, fed from the group layout callback into React state as the divider moves.
Shadcn Resizable as a whole fits:
- Split views that set a sidebar beside content or a header over a body, sized by dragging the divider
- Editor and IDE style workspaces of 3 or more panes, in one row or nested across both directions
- Layouts that read live pane sizes back into app state, such as a percentage readout
For a complete product layout with navigation, header and content area already in place, use the App Shell blocks. For task bars stretched along a timeline to change their start and end dates, use the Gantt blocks. For table rows and columns that users reorder by hand or widen at the header edge, use the Drag & Drop blocks.
How do I install Shadcn Resizable Size Tracking?
Is Shadcn Resizable Size Tracking free to use?
Which components does Shadcn Resizable Size Tracking use?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.