Alert
Inline status banner that stays on the page.
Placeholder when a list, page, or region has nothing to show. One piece.
Placeholder when a list, page, or region has nothing to show. Not EmptyHeader, EmptyMedia, or EmptyContent. Pick a kind and a size; failures use LoadError.
First use, md: the brand tile, a title, one sentence and the one primary.
Connect Stripe to see revenue, invoices and plans here.
kind sets the icon and the role: no-data, no-results and permission are role=status, so they are read once; first-use has no role and is the only kind that may hold a primary Button. size sm sits in a chart, list or table cell with no heading; md fills a card body; lg fills a page. Compose Avatar or AvatarGroup in media.
import { Empty } from "agentic-ds-kit";From contracts/empty.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 | Yes | — | The one sentence that says what happened, like "No invoice matches these filters." A heading at md and lg; plain text at sm. |
| description | string | No | — | Supporting copy under the title. |
| icon | KitIcon | No | — | Overrides the kind's icon. Shown in the media tile (md, lg) or bare (sm). Not EmptyMedia. A curated Lucide name (PascalCase or kebab-case) renders instantly; any other Lucide name needs import "agentic-ds-kit/icons-on-demand" once (otherwise it is skipped with a dev warning). Or pass the Lucide component (Plus) or an element. |
| media | slot | No | — | Custom media slot: kit Avatar/AvatarGroup, or a decorative app illustration marked aria-hidden (an <img alt=""> or an aria-hidden svg in semantic tokens). Replaces the icon tile. Not EmptyMedia. |
| actions | slot | No | — | Action row. Compose kit Buttons only. Not EmptyContent. Neutral sm Buttons, one verb each (Clear filters, Show 12 months, Request access). Only kind first-use may hold one primary Button; at lg, one primary and up to two neutral. |
| outlined | boolean | No | false | Bordered empty state with surface-card background. |
| kind | enum | No | — | Why it is empty. Sets the default icon (ChartLine, SearchX, Plug, Lock) and the role: role=status for no-data, no-results and permission, so it is read once; no role for first-use. first-use gets the brand tile. Errors are not a kind: use LoadError. Leave it out for a plain placeholder with no role. no-data | no-results | first-use | permission |
| size | sm | md | lg | No | md | sm: in a chart, list or table cell. Bare 16px icon and the title as one sentence on one row with no heading, one neutral sm Button. md: a whole card body. 32px icon tile and a title; put card actions in the Card footer. lg: a page. 40px tile, heading-5 title, one primary and up to two neutral Buttons. |
| tile | filled | outlined | circle | No | filled | The icon tile at md and lg. filled: today's tray square (brand tint for first-use). outlined: surface.card with a border.faint border and shadow.xs. circle: the same fill, round. No effect at sm (no tile) or when media is set. |
Inline status banner that stays on the page.
Spinning circular loader for short indeterminate waits.
Square dot-grid loading indicator for compact waits.
What a list, card, chart or page shows when its data failed to load: an icon, what failed, a reference and Try again.