Components / Alert dialog

Trigger & Display

Basic implementation using v-model to bind the dialog state.

Custom Content & Non-dismissable

Use slots for custom HTML content and prevent clicking outside to dismiss the dialog.

AlertDialog API

Prop / EventTypeDefaultDescription
openbooleanfalseControls dialog visibility. Bind with v-model:open.
titlestring''Heading text rendered in the dialog header.
descriptionstring''Subtext below the title describing the action.
preventCloseOutbooleanfalseWhen true, clicking the backdrop or pressing Escape does NOT close the dialog.