Skip to content

ComponentsAlert Dialog

Components

Alert Dialog

ConfirmationDialog: a 400px alert dialog with Cancel and a primary or danger confirm, busy and disabled states; layout="centered" for the 416px icon-led prompt.

ConfirmationDialog

Title 15/20 w520, description 14/20 secondary, buttons 12 apart, no Close button; the backdrop does not dismiss, Escape cancels. Confirm takes focus on open.

Danger
Primary, focus on Cancel
Extra content
Disabled with a reason
Busy (closeOnConfirm false)

Centered

layout="centered" (v2, Code "Enable notifications"): 416 wide, 16px body, a centred column: 32px icon (tint it, e.g. text-clay-emphasized), title 15/20 w520 16px below, description 14/20 secondary, buttons centred 5px apart 16px below, optional 13/17 accent link 16px under them. Focus starts on the secondary button.

Enable notifications

Parts

The shadcn-vue parts keep working: size sm (default) … 3xl, initial-focus, AlertDialogMedia (kit extra).

AlertDialog parts

Light and dark

Popover surface (#fff | #303030), panel-lg shadow, 16px body, footer 16px below, 12px gap; centred variant 416 wide.

light

Delete this item?

This can't be undone.

dark

Delete this item?

This can't be undone.

light

Enable notifications

Get notified when a session needs your input or finishes.

Don't ask me again
dark

Enable notifications

Get notified when a session needs your input or finishes.

Don't ask me again