skip to the page
superthread
componentsalert dialog
system
superthread
version
2.15.1
date
24.11.26

alert dialog

a confirmation sheet for an action that needs a decision. the title names the action, the explanation names what goes, and cancel gives a clear way back.

bunx --bun shadcn@latest add @mk/alert-dialog

example

delete the synthetic run or cancel to keep it. focus opens on cancel, the action closes the sheet, and the result shows below the trigger.

light

or-412 has 3 logs. cancel keeps them.

dark

or-412 has 3 logs. cancel keeps them.

open

the confirmation printed over its plain scrim. this specimen stays on the page without taking focus or locking scroll.

light

dark

contact edgedraws where a floating layer meets the page, under its soft lift

actions

the default action prints in the house ink on paper and as the outline on a dark sheet. an action that leaves the app takes key.

light

default
house ink on paper, the outline on a dark sheet

key
an action that leaves the app

dark

default
house ink on paper, the outline on a dark sheet

key
an action that leaves the app

sizes

the default sheet stops at 440 px; small stops at 320 px. both keep the same media, title and right-aligned actions.

light

default
440 px maximum width

sm
320 px maximum width

dark

default
440 px maximum width

sm
320 px maximum width

states

the action keeps the button states: key ink for destructive work on paper, the outline off paper, and the ring for keyboard focus.

light

rest
destructive action in key ink

hover
destructive action in key ink

focus
outside house ring

pressed
destructive action in key ink

disabled
disabled action

dark

rest
destructive action in key ink

hover
destructive action in key ink

focus
outside house ring

pressed
destructive action in key ink

disabled
disabled action