ortaui
  1. Components
  2. Overlays

Alert Dialog

A dialog that interrupts for a decision. No close button and no backdrop dismissal, so the user picks an action.

Installation#

npx shadcn add @ortaui/alert-dialog

Examples#

Confirm and destructive#

API reference#

PropTypeDefaultDescription
open / defaultOpenboolean-Controlled or uncontrolled state.
onOpenChange(open: boolean) => void-Called when the open state changes.
variantButtonProps['variant']-AlertDialogAction (default primary) and AlertDialogCancel (default outline).
classNamestring-Merged with the component classes via cn().