c-resizable-3.tsx
"use client"
import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from "@/components/ui/resizable"
export function Pattern() {
return (
<div className="mx-auto w-full max-w-lg">
<ResizablePanelGroup
orientation="horizontal"
className="rounded-2xl min-h-[300px] border"
>
<ResizablePanel defaultSize={40}>
<div className="flex h-full items-center justify-center p-6">
<span className="text-sm font-semibold">Side</span>
</div>
</ResizablePanel>
<ResizableHandle />
<ResizablePanel defaultSize={60}>
<ResizablePanelGroup orientation="vertical">
<ResizablePanel defaultSize={30}>
<div className="flex h-full items-center justify-center p-6">
<span className="text-sm font-semibold">Top</span>
</div>
</ResizablePanel>
<ResizableHandle />
<ResizablePanel defaultSize={70}>
<div className="flex h-full items-center justify-center p-6">
<span className="text-sm font-semibold">Bottom</span>
</div>
</ResizablePanel>
</ResizablePanelGroup>
</ResizablePanel>
</ResizablePanelGroup>
</div>
)
}































