AlertDialog
Must-choose overlay that interrupts until the user cancels or confirms.
Dismissible overlay for short tasks, forms or extra detail.
Dismissible overlay. Composes ModalCard. Not AlertDialog. Not Drawer.
Open the medium modal in the preview frame. The header has the eyebrow, description and Close; the footer has Ask on the left. Focus starts on the first field. Scrim click and Escape dismiss.
Use Modal for short forms and extra detail that can be dismissed. Use AlertDialog when they must choose. Use Drawer for an edge panel. Use ModalCard when you need the panel without an overlay. Product screens omit contained so Modal portals to the page.
Dismissible overlay for short tasks, forms, or extra detail. Composes ModalCard. Not a must-choose confirm.
import { Modal } from "agentic-ds-kit";From contracts/modal.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 | No | — | — |
| 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 |
| size | sm | md | lg | No | md | sm 352 or md 448 for a short form, lg 576 to review a list. Below 480px (30rem) lg fills the screen. |
| showClose | boolean | No | true | — |
| onClose | function | Yes | — | — |
| children | slot | Yes | — | Body |
| footer | slot | No | — | kit Buttons / ButtonGroup, size sm: Cancel, then one primary last. |
| footerStart | slot | No | — | Left of the footer actions, first in the footer tab order: an Ask Button (appearance outline, mode neutral, size sm, iconStart MessageCircle) or a count like 6 of 6 selected. Labels are caller-provided. |
| contained | boolean | No | false | In-canvas docs only. Product screens omit it (portal to document.body). |
Must-choose overlay that interrupts until the user cancels or confirms.
Inline status banner that stays on the page.
Edge panel for secondary tasks.
The panel chrome for a modal: one shared header (tone icon + eyebrow, Close, h2 title, description) and footer (footerStart left, actions right).