Alert Dialog

Blocking confirmation surface on bits-ui AlertDialog. Fade-and-zoom opens in 100ms, refuses to dismiss on overlay click — user must commit or cancel.

Usage

With media

Compact size

AlertDialog.Root props

Inherits bits-ui AlertDialog.Root props via spread.

PropTypeDescription
boolean (bindable)Controls visibility. Two-way bindable.
(open: boolean) => voidFires when the open state changes for any reason.

AlertDialog.Content props

PropTypeDescription
'default' | 'sm'Max-width preset. Compact is useful for short confirmations.
ComponentProps<AlertDialog.Portal>Forwarded to the internal portal.
stringMerged onto the content surface via tailwind-merge.