displaytexulinot agent-emittableapp
Card
card
A surface for grouping related content with optional link behavior.
Live examples
Elevated card
Elevated card
Loading demo…
Linked card
Linked card
Props
| Name | Kind | Required | Default | Description |
|---|---|---|---|---|
variant | enum (elevated, flat) | no | "elevated" | Visual elevation |
href | string | no | — | Optional link target (URL policy) |
hrefTrust | enum (developer, untrusted) | no | "developer" | — |
linkLabel | string | no | — | Accessible name when the card is a link |
class | string | no | — | Extra classes |
Keyboard
| Key | Action |
|---|---|
a | When href is set, the card is a real link with an accessible name |
a | Rejected href schemes render as a non-interactive surface |
Accessibility
- When href is set, the card is a real link with an accessible name
- Rejected href schemes render as a non-interactive surface
Evidence for card
Latest committed gates for card (as of 2026-10-23). Static snapshot — not live CI.
Behavior
n/ano behavior scenario
No dedicated behavior scenario for this catalog id (a styled or display surface, covered by its unit and axe tests).
Size (gzip)
texuli/card · budget 12.0 KiB
Budget from texuli.budgets.json; re-measure with `pnpm size --filter <entry>`.
Axe
documented
tests/e2e/site-component-pages.spec.tsdocs/quality (a11y-*)
Site component pages axe gate; package-level a11y docs under docs/quality when present.
Browsers
chromiumwebkitmobile
Playwright projects: Desktop Chrome, Desktop Safari, Pixel 7. Firefox is a known gap on this host.
When to use
Use when
- Group related content in a bordered surface
- Make a whole tile a single link
Don’t use when
Prefer another component
- A single line of chrome (use badge or button)
- A data grid of many rows (use table)