Skip to content

Commit

Permalink
fix(docs): Resizable panel direction should be horizontal (#2295)
Browse files Browse the repository at this point in the history
In the [resizable documentation](https://ui.shadcn.com/docs/components/resizable) the handle example shows a horizontal handle but the code example has `direction="vertical"` when it should be `direction="horizontal"`

<img width="745" alt="Screenshot 2024-01-05 at 9 34 43 AM" src="https://github.com/shadcn-ui/ui/assets/7241069/68c21241-e0c7-41b1-81d7-579306149520">
  • Loading branch information
croossin authored Jan 7, 2024
1 parent 4b200eb commit 4b59cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/www/content/docs/components/resizable.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ import {

export default function Example() {
return (
<ResizablePanelGroup direction="vertical">
<ResizablePanelGroup direction="horizontal">
<ResizablePanel>One</ResizablePanel>
<ResizableHandle withHandle />
<ResizablePanel>Two</ResizablePanel>
Expand Down

1 comment on commit 4b59cb8

@vercel
Copy link

@vercel vercel bot commented on 4b59cb8 Jan 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./apps/www

ui-shadcn-pro.vercel.app
example-playground.vercel.app
ui-git-main-shadcn-pro.vercel.app
ui.shadcn.com

Please sign in to comment.