Dialog
Basic
ADialog
component uses ACard
as its base. Bind ADialog
with v-model
to hide and show dialog/card.
All props & slots available in ACard
is available in ADialog
.
Width
Use width utility classes to provide custom width to dialog. e.g. w-[800px]
.
Persistent
You can disable closing dialog on outside click via persistent
prop.
📖 You don't need a modal window
Nice article on why you don't need a modal window.
API
Show/Hide menu base on v-model value
Layer variant
Interaction states like hover & active
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 dialog 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