--- title: Resizable description: Accessible resizable panel groups and layouts with keyboard support. base: base component: true links: doc: https://github.com/bvaughn/react-resizable-panels api: https://github.com/bvaughn/react-resizable-panels/tree/main/packages/react-resizable-panels --- ## About The `Resizable` component is built on top of [react-resizable-panels](https://github.com/bvaughn/react-resizable-panels) by [bvaughn](https://github.com/bvaughn). ## Installation Command Manual ```bash npx shadcn@latest add resizable ``` Install the following dependencies: ```bash npm install react-resizable-panels ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx showLineNumbers import { ResizableHandle, ResizablePanel, ResizablePanelGroup, } from "@/components/ui/resizable" ``` ```tsx showLineNumbers One Two ``` ## Examples ### Vertical Use `direction="vertical"` for vertical resizing. ### Handle Use the `withHandle` prop on `ResizableHandle` to show a visible handle. ## RTL To enable RTL support in shadcn/ui, see the [RTL configuration guide](/docs/rtl). ## API Reference See the [react-resizable-panels](https://github.com/bvaughn/react-resizable-panels/tree/main/packages/react-resizable-panels) documentation.