Alert
Inline status banner that stays on the page.
Must-choose overlay that interrupts until the user cancels or confirms. Composes ModalCard (same header and footer as Modal), with no Close.
Must-choose overlay. Not Alert. Not Modal.
Small danger dialog. Escape cancels; an overlay click does not. Variants shows primary and type to confirm.
Use Alert for inline status. Use Modal when they can dismiss. Use AlertDialog when they must choose. Escape cancels. Overlay does not close.
import { AlertDialog } from "agentic-ds-kit";From contracts/alertdialog.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| open | boolean | Yes | — | — |
| title | string | Yes | — | — |
| description | string | Yes | — | — |
| eyebrow | string | No | — | Short area name in the header row, 12px, like Billing · Invoices. Caller-provided. |
| tone | enum | No | neutral | Tone icon (16px, aria-hidden) and status word from KitLabels (info, success, warning, danger) before the eyebrow, so status is never colour alone. neutral shows the eyebrow only. neutral | info | success | warning | danger |
| consequences | string[] | No | — | Outcome lines under the description, as visible text, like Invoices already in the ledger stay. |
| confirmText | string | No | — | The person types this (a name) to turn on the action. The field is labelled Type <confirmText> to confirm; the action stays disabled until it matches, and focus starts in the field. |
| cancelLabel | string | No | Cancel | — |
| actionLabel | string | Yes | — | — |
| actionVariant | primary | danger | No | primary | danger replaces the primary. Buttons are size sm. |
| size | sm | md | No | md | Modal sizes: sm 352 (16 padding) or md 448 (24). Radius 16. |
| footerStart | slot | No | — | Left of Cancel and the action, first in the footer tab order: an optional Ask Button (appearance outline, mode neutral, size sm, iconStart MessageCircle). Caller-provided label. |
| onCancel | function | Yes | — | — |
| onAction | function | Yes | — | — |