overlaystexulinot agent-emittableapp
AlertDialog
alert-dialog
Modal confirm/cancel dialog for consequential actions.
Live examples
Destructive confirm
Destructive confirm
Loading demo…
Props
| Name | Kind | Required | Default | Description |
|---|---|---|---|---|
open | boolean | no | false | — |
title | string | yes | — | — |
description | string | no | — | — |
confirmLabel | string | no | "Confirm" | — |
cancelLabel | string | no | "Cancel" | — |
destructive | boolean | no | false | — |
onConfirm | event | no | — | — |
onCancel | event | no | — | — |
trigger | slot | no | — | — |
children | slot | no | — | — |
class | string | no | — | — |
errorFallback | string | no | — | — |
onOpenChange | event | no | — | — |
Keyboard
| Key | Action |
|---|---|
— | 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
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.tsdocs/quality (a11y-*)
Site component pages axe gate; package-level a11y docs under docs/quality when present.
Browsers
chromiumwebkitmobile
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)