Components
Loading preview...
Accessible resizable panel groups and layouts with keyboard support.
npx shadcn@latest add https://21st.dev/r/sean0205/resizable-1import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from '@/components/ui/resizable-1';
export default function Component() {
return (
<ResizablePanelGroup direction="vertical" className="min-h-[200px] max-w-md rounded-lg border md:min-w-[450px]">
<ResizablePanel defaultSize={25}>
<div className="flex h-full items-center justify-center p-6">
<span className="font-semibold">Header</span>
</div>
</ResizablePanel>
<ResizableHandle />
<ResizablePanel defaultSize={75}>
<div className="flex h-full items-center justify-center p-6">
<span className="font-semibold">Content</span>
</div>
</ResizablePanel>
</ResizablePanelGroup>
);
}