Login to your account
Enter your email below to login to your account.
Forgot your password?
Framed tile with optional header, body, and footer actions.
Framed tile. Section is unframed. Scorecard is a KPI.
A login-style Card composing kit Buttons, Divider, Field and Input.
Enter your email below to login to your account.
Forgot your password?
Compose kit pieces in children. One primary action. Don't use Card for a lone metric.
import { Card } from "agentic-ds-kit";From contracts/card.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 |
|---|---|---|---|---|
| title | string | No | — | 14/20 at heading weight (550) in both sizes: the smallest of three title sizes (page 24, section 18, card 14), the same as the agent cards. |
| headingLevel | enum | No | 2 | Heading level of the title. Use 1 when the card title is the page heading (e.g. Sign in), 3 or 4 when the card sits under a page or Section heading. Only the element changes; the 16/24 title look stays the same. |
| description | string | No | — | — |
| children | slot | Yes | — | Body. Compose kit Field/Input/Button/Badge/etc, never a local cousin. The card does not clip content, so DatePicker, Select, and DropdownMenu overlays open past its edge. A chart (LineChart, BarChart, ComboChart, PieChart, ScatterChart, Heatmap) directly in the body drops its own frame (border, radius, fill), padded or flush; in a flush Card it takes the card's inline padding so its title lines up with the card header. |
| size | sm | md | No | md | sm = compact padding (space.4); md = space.6. Both use the 14/20 card title (type.size.bodySm / type.line.bodySm at type.weight.heading); only padding differs. The footer's block padding is space.4 on md and space.3 on sm. Size never sets width: the card fills its container, so width comes from the layout (wrap it, e.g. max-width 24rem, for a narrow tile). |
| headerAction | object | array | No | — | Header kit Button, or up to two (an array), e.g. an icon-only Ask and View all. Ghost or outline, not a second solid-primary. href is deprecated: it still renders a real link with the sm Button look, but prefer a footer action. iconStart adds a leading icon; iconOnly with iconStart makes it icon-only, named by label. More than two: the rest are ignored, with a warning in development. |
| flush | boolean | No | false | Body edge to edge with no padding; header and footer keep padding with a divider. A DataTable directly in the body drops its own frame (border, radius, shadow). Its first and last columns take the card's inline padding at any size (space.6 md, space.4 sm), whatever the table's cellSize, so the title lines up with the first column and headerAction with the last. Use for table cards; give the DataTable ariaLabel instead of a caption so the title is not repeated. |
| actions | array | No | — | Footer kit Buttons (md), max 2, right-aligned after Ask, still one solid-primary per view. The footer sits under a divider. |
| icon | KitIcon | No | — | Header row: a small icon tile (surface.muted, icon.muted) before the eyebrow. aria-hidden. |
| badge | slot | No | — | One kit Badge right under the title, 4 below it, such as a connection status (a word plus an icon). Not for actions or long text. |
| eyebrow | string | No | — | Header row: short grey label, e.g. 'Analytics'. Caller copy, not a heading. |
| meta | string | No | — | Header row: timestamp on the right, e.g. '12:04', tabular numbers. Not a heading. |
| onDismiss | function | No | — | Header row: X IconButton sm (32), ghost neutral, named by KitLabels dismiss. |
| source | string | No | — | Grey caption under the body naming where the data comes from, e.g. 'Stripe · last 30 days'. Describes the article (aria-describedby). |
| onAsk | function | No | — | Footer: neutral ghost Button sm with MessageCircle (aria-hidden) on the left. Shown only with askLabel. |
| askLabel | string | No | — | Caller label for Ask, e.g. 'Ask' or 'Ask in Chat'. |
| imageSrc | string | No | — | Full-bleed image above the content; its top corners take the card radius |
| imageAlt | string | No | — | Required when imageSrc is set |
Grouped page block with optional heading, description, and actions.
one KPI with label, value, optional delta/trend/hint/badge
Dismissible overlay for short tasks, forms, or extra detail.
Must-choose overlay that interrupts until the user cancels or confirms.