mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 22:18:39 +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
27 lines
768 B
TypeScript
27 lines
768 B
TypeScript
import {
|
|
ResizableHandle,
|
|
ResizablePanel,
|
|
ResizablePanelGroup,
|
|
} from "@/registry/default/ui/resizable"
|
|
|
|
export default function ResizableDemo() {
|
|
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>
|
|
)
|
|
}
|