---
title: Resizable
description: Accessible resizable panel groups and layouts with keyboard support.
source: apps/www/src/lib/registry/default/ui/resizable
primitive: https://www.radix-vue.com/components/splitter.html
---
## Installation
```bash
npx shadcn-vue@latest add resizable
```
### Install the following dependency:
```bash
npm install radix-vue
```
### Copy and paste the following code into your project:
`index.ts`
<<< @/lib/registry/default/ui/resizable/index.ts
`ResizablePanelGroup.vue`
<<< @/lib/registry/default/ui/resizable/ResizablePanelGroup.vue
`ResizableHandle.vue`
<<< @/lib/registry/default/ui/resizable/ResizableHandle.vue
## Usage
```vue
One
Two
```
## Examples
### Vertical
Use the direction prop to set the direction of the resizable panels.
```vue:line-numbers {10}
One
Two
```
### Handle
You can set or hide the handle by using the withHandle prop on the ResizableHandle component.
```vue:line-numbers {12}
One
Two
```