Skip to content

Commit

Permalink
fix(docs): resizable demo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-karger committed Apr 29, 2024
1 parent 366a1c3 commit 8fbbdfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions apps/docs/src/registry/example/resizable-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ import { Resizable, ResizableHandle, ResizablePanel } from "../ui/resizable"
export default function ResizableDemo() {
return (
<Resizable orientation="horizontal" class="max-w-md rounded-lg border">
<ResizablePanel initialSize={50}>
<ResizablePanel initialSize={0.25} class="overflow-hidden">
<div class="flex h-[200px] items-center justify-center p-6">
<span class="font-semibold">One</span>
</div>
</ResizablePanel>
<ResizableHandle withHandle />
<ResizablePanel initialSize={50}>
<ResizablePanel initialSize={0.75} class="overflow-hidden">
<Resizable orientation="vertical">
<ResizablePanel initialSize={25}>
<ResizablePanel initialSize={0.5} class="overflow-hidden">
<div class="flex h-full items-center justify-center p-6">
<span class="font-semibold">Two</span>
</div>
</ResizablePanel>
<ResizableHandle />
<ResizablePanel initialSize={75}>
<ResizablePanel initialSize={0.5} class="overflow-hidden">
<div class="flex h-full items-center justify-center p-6">
<span class="font-semibold">Three</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/routes/docs/components/resizable.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## About

Drawer is built on top of [corvu](https://corvu.dev/) by [GiyoMoon](https://github.com/GiyoMoon).
Resizable is built on top of [corvu](https://corvu.dev/) by [GiyoMoon](https://github.com/GiyoMoon).

## Installation

Expand Down

0 comments on commit 8fbbdfa

Please sign in to comment.