Card
Framed tile with optional header, body, and footer actions.
The panel chrome for a modal: one shared header and footer.
Panel chrome for a modal. Not Card. Not InsightCard. Overlay behavior is Modal.
The panel on the canvas: medium, with a description and close. No overlay.
Settings · Profile
Make changes to your profile here.
Modal always composes ModalCard. Use ModalCard on its own in the catalog, or when a surface needs the same chrome without an overlay. Use Card for a page tile.
The panel chrome for a modal: one shared header (tone icon + eyebrow, Close, h2 title, description) and footer (footerStart left, actions right). Modal, AlertDialog and the AppShell work panel render it; Drawer uses the same header and footer. Not a page Card.
import { ModalCard } from "agentic-ds-kit";From contracts/modalcard.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 |
|---|---|---|---|---|
| role | string | No | group | Modal sets dialog. Leave the default when ModalCard is static. |
| tabIndex | number | No | — | Modal sets -1 so the dialog can take focus. |
| aria-modal | true | false | No | — | Modal sets true. |
| 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 | Width sm 352 (22rem, 16 padding), md 448 (28rem, 24), lg 576 (36rem, 24). Radius 16 (surfaceLg) on every size. |
| onClose | function | No | — | Close only when provided: a 32px ghost neutral IconButton named Close (KitLabels close), on the right of the eyebrow row, or of the title row when there is no eyebrow. |
| children | slot | No | — | Body |
| footer | slot | No | — | kit Buttons / ButtonGroup, size sm: Cancel, then one primary (or danger) last on the right. |
| 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. |
Framed tile with optional header, body, and footer actions.
one KPI with label, value, optional delta/trend/hint/badge
A recommended insight or opportunity as a compact card, with tone and optional actions.
Dismissible overlay for short tasks, forms, or extra detail.