--- title: Drawer description: A drawer component for vue. source: apps/www/src/lib/registry/default/ui/drawer primitive: https://github.com/radix-vue/vaul-vue --- ## About Drawer is built on top of [Vaul Vue](https://github.com/radix-vue/vaul-vue). ## Installation ```bash npx shadcn-vue@latest add drawer ``` ## Usage ```vue showLineNumbers ``` ### Scale Background If you want the background to have a zoom effect, you need to add the `vaul-drawer-wrapper` attribute to the root component. ```html
``` ## Examples ### Responsive Dialog You can combine the `Dialog` and `Drawer` components to create a responsive dialog. This renders a `Dialog` component on desktop and a `Drawer` on mobile.