brijr/ui

Lab

Alert Dialog

npx shadcn@latest add @brijr/alert-dialog

Parts

Alert dialogs are modal and never close on an outside press. Open each one.

header · footer · cancel · action
action variant destructive
title only
action only

Content

long title · description
long button labels
className sm:max-w-sm

Triggers

shortcut mod+backspace
disabled
focusableWhenDisabled

Actions

action pending
disabled action

Slots

AlertDialogContent renders the backdrop through overlay. Header and footer take render.

overlay={null}
overlay={<AlertDialogOverlay className="top-14" />} · render={<header />}