Search documentation
Search pages, components, blocks, styles and colours.
Accessible resizable panel groups and layouts with keyboard support.
About
The Resizable component is built on top of react-resizable-panels by bvaughn.
Installation
Usage
import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from "@/components/ui/resizable"<ResizablePanelGroup orientation="horizontal">
<ResizablePanel>One</ResizablePanel>
<ResizableHandle />
<ResizablePanel>Two</ResizablePanel>
</ResizablePanelGroup>Composition
Use the following composition to build a ResizablePanelGroup:
ResizablePanelGroup
├── ResizablePanel
├── ResizableHandle
└── ResizablePanelVertical
Use orientation="vertical" for vertical resizing.
Handle
Use the withHandle prop on ResizableHandle to show a visible handle.
API Reference
See the react-resizable-panels documentation.
Changelog
2025-02-02 react-resizable-panels v4
Updated to react-resizable-panels v4. See the v4.0.0 release notes for full details.
If you're using react-resizable-panels primitives directly, note the following changes:
The Fabricator UI wrapper components (ResizablePanelGroup, ResizablePanel,
ResizableHandle) remain unchanged.