Drawer
Basic
ADrawer
component uses ACard
as its base. Bind ADrawer
with v-model
to hide and show drawer/card.
All props & slots available in ACard
is available in ADrawer
.
Anchor
You can change the position of the drawer by providing the values left
,right
,top
or bottom
to the anchor
prop.
Width
Use width utility classes to provide custom width to drawer. e.g. !w-[400px]
.
Persistent
You can disable closing drawer on outside click via persistent
prop.
API
Show/Hide menu base on v-model value
Layer variant
Interaction states like hover & active
Drawer anchor/position
Set loading state
Tag to use for title of the component
Tag to use for subtitle of the component
Tag to use for text rendered via text
prop
Persistence of drawer when clicked outside of reference element
Typography text content
Layer color
Typography title
Typography subtitle
Render image at the top of the card (above header)
alt
attribute for image rendered via img
prop