
Vertical ResizablePanelGroup with header and content panels.
@shadcnblocks
example/resizable/resizable-vertical-split.tsx
import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from "@/components/ui/resizable";
export const title = "Vertical split";
const Example = () => (
<ResizablePanelGroup
className="min-h-[240px] max-w-md rounded-lg border"
orientation="vertical"
>
<ResizablePanel defaultSize="25%">
<div className="flex h-full items-center justify-center p-6">
<span className="text-sm font-medium">Header</span>
</div>
</ResizablePanel>
<ResizableHandle />
<ResizablePanel defaultSize="75%">
<div className="flex h-full items-center justify-center p-6">
<span className="text-sm font-medium">Content</span>
</div>
</ResizablePanel>
</ResizablePanelGroup>
);
export default Example;



























