mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-08 14:35:09 +00:00
* feat(www): add login blocks * chore(www): restructure for blocks * chore: build registry * chore: clean up chunks * fix(www): chart categories * feat(www): big registry refactor * feat(www): update blocks * feat: complex blocks * fix: update schema * feat: sync new-york and default * fix: lint * feat: move charts * fix(www): code * fix: src path * chore: rebuild registry * fix: screenshot * fix: set new-york as default
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
import {
|
|
ResizableHandle,
|
|
ResizablePanel,
|
|
ResizablePanelGroup,
|
|
} from "@/registry/default/ui/resizable"
|
|
|
|
export default function ResizableDemo() {
|
|
return (
|
|
<ResizablePanelGroup
|
|
direction="horizontal"
|
|
className="max-w-md rounded-lg border md:min-w-[450px]"
|
|
>
|
|
<ResizablePanel defaultSize={50}>
|
|
<div className="flex h-[200px] items-center justify-center p-6">
|
|
<span className="font-semibold">One</span>
|
|
</div>
|
|
</ResizablePanel>
|
|
<ResizableHandle />
|
|
<ResizablePanel defaultSize={50}>
|
|
<ResizablePanelGroup direction="vertical">
|
|
<ResizablePanel defaultSize={25}>
|
|
<div className="flex h-full items-center justify-center p-6">
|
|
<span className="font-semibold">Two</span>
|
|
</div>
|
|
</ResizablePanel>
|
|
<ResizableHandle />
|
|
<ResizablePanel defaultSize={75}>
|
|
<div className="flex h-full items-center justify-center p-6">
|
|
<span className="font-semibold">Three</span>
|
|
</div>
|
|
</ResizablePanel>
|
|
</ResizablePanelGroup>
|
|
</ResizablePanel>
|
|
</ResizablePanelGroup>
|
|
)
|
|
}
|