Resizable
1.0.0Accessible resizable panel groups and layouts with keyboard support.
Component data
- ID
- resizable
- Category
- atoms
- Version
- 1.0.0
- Added
- 2026-09-17
- Type
- component
- Keyboard nav
- Yes
- Reduced motion
- Yes
resizablesplitpanelslayoutatom
Dependencies
- react-resizable-panels
- clsx
- tailwind-merge
Examples
Default
<ResizablePanelGroup
className="max-w-sm rounded-lg border border-border"
orientation="horizontal"
>
<ResizablePanel defaultSize="50%">
<div className="flex h-[200px] items-center justify-center p-6">
<span className="font-semibold">{resizableMocks.default.one}</span>
</div>
</ResizablePanel>
<ResizableHandle withHandle />
<ResizablePanel defaultSize="50%">
<ResizablePanelGroup orientation="vertical">
<ResizablePanel defaultSize="25%">
<div className="flex h-full items-center justify-center p-6">
<span className="font-semibold">
{resizableMocks.default.two}
</span>
</div>
</ResizablePanel>
<ResizableHandle withHandle />
<ResizablePanel defaultSize="75%">
<div className="flex h-full items-center justify-center p-6">
<span className="font-semibold">
{resizableMocks.default.three}
</span>
</div>
</ResizablePanel>
</ResizablePanelGroup>
</ResizablePanel>
</ResizablePanelGroup>Vertical
<ResizablePanelGroup
className="min-h-[200px] max-w-sm rounded-lg border border-border"
orientation="vertical"
>
<ResizablePanel defaultSize="25%">
<div className="flex h-full items-center justify-center p-6">
<span className="font-semibold">
{resizableMocks.vertical.header}
</span>
</div>
</ResizablePanel>
<ResizableHandle />
<ResizablePanel defaultSize="75%">
<div className="flex h-full items-center justify-center p-6">
<span className="font-semibold">
{resizableMocks.vertical.content}
</span>
</div>
</ResizablePanel>
</ResizablePanelGroup>Handle
<ResizablePanelGroup
className="min-h-[200px] max-w-sm rounded-lg border border-border"
orientation="horizontal"
>
<ResizablePanel defaultSize="25%">
<div className="flex h-full items-center justify-center p-6">
<span className="font-semibold">{resizableMocks.handle.sidebar}</span>
</div>
</ResizablePanel>
<ResizableHandle withHandle />
<ResizablePanel defaultSize="75%">
<div className="flex h-full items-center justify-center p-6">
<span className="font-semibold">{resizableMocks.handle.content}</span>
</div>
</ResizablePanel>
</ResizablePanelGroup>
