ComponentsAlertDialog

overlaystexulinot agent-emittableapp

AlertDialog

alert-dialog

Modal confirm/cancel dialog for consequential actions.

Live examples

Destructive confirm

Destructive confirm

Loading demo…

Props

Public props for AlertDialog
NameKindRequiredDefaultDescription
openbooleannofalse—
titlestringyes——
descriptionstringno——
confirmLabelstringno"Confirm"—
cancelLabelstringno"Cancel"—
destructivebooleannofalse—
onConfirmeventno——
onCanceleventno——
triggerslotno——
childrenslotno——
classstringno——
errorFallbackstringno——
onOpenChangeeventno——

Keyboard

Keyboard behavior for AlertDialog
KeyAction
—See accessibility notes for keyboard behavior.

Accessibility

  • Role alertdialog; focus trapped until confirm or cancel
  • Destructive mode styles the confirm action and warning icon

Evidence for alert-dialog

Latest committed gates for alert-dialog (as of 2026-10-23). Static snapshot — not live CI.

Behavior

checkedscenario alert-dialog

8 checks

Rows in tests/behavior/scenarios/alert-dialog.spec.ts, held to the WAI-ARIA APG pattern, run on Chromium, WebKit and the Pixel 7.

Size (gzip)

@texuli/primitives/alert-dialog · budget 13.0 KiB

Budget from texuli.budgets.json; re-measure with `pnpm size --filter <entry>`.

Axe

documented

  • tests/e2e/site-component-pages.spec.ts
  • docs/quality (a11y-*)

Site component pages axe gate; package-level a11y docs under docs/quality when present.

Browsers

  • chromium
  • webkit
  • mobile

Playwright projects: Desktop Chrome, Desktop Safari, Pixel 7. Firefox is a known gap on this host.

When to use

Use when

  • Confirm delete or irreversible actions
  • Require an explicit choice

Don’t use when

Prefer another component

  • Informational copy without a choice (use dialog or toast)