Toggle Sidebar B
Light / Dark Mode DLog in Sign up

Dialog

Modal overlay for confirmations, short forms, or extra detail. For modals that should turn into bottom drawers on mobile, use DialogResponsive instead.

Default

Standard confirmation dialog. Trigger opens, Close dismisses.

With form

Common layout: header, body with Field and Input, footer with action buttons.

Controlled

Drive the open state externally via v-model:open. Use when the dialog is triggered by a non-button event.

API Reference

Props, events, and slots for each sub-component.

Dialog

Props

PropTypeDefaultDescription
openbooleanOpen state. Supports v-model:open.
modalbooleantrueWhether the dialog blocks outside interaction (focus trap and overlay click).

DialogContent

Props

PropTypeDefaultDescription
classstringDefault width is sm:max-w-md. Override to go wider.

DialogTrigger / DialogClose

Props

PropTypeDefaultDescription
asChildbooleanfalseRender the child slot without the default button wrapper.