Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Drawer

Preview

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/drawer

Import the shared styles once in your application.

TSUsage
import Drawer from '@/components/beui/layout/Drawer.vue'
import '@/components/beui/styles.css'

API Reference

v-model:open?
boolean
Defaultfalse
side?
"left" | "right"
Defaultright
class?
string

Class for the panel surface.

Default—
backdropClassName?
string

Class for the backdrop.

Default—
ariaLabel?
string
Default—
dismissable?
boolean

Close when the backdrop is clicked or Escape is pressed. Default true.

Defaulttrue
labels?
Partial<DrawerMessages>

Override any built-in string.

Default—

Updated