Card
Versatile container with title, badge, and link.
On this page
Props
| Prop | Type | Default | Description |
|---|---|---|---|
content | PageNode | readonly PageNode[] | None | Child nodes |
title | CardValue | None | Card heading |
description | CardValue | None | Subtext |
icon | CardValue | None | Icon name |
badge | CardValue | None | Badge label |
badgeTone | CardBadgeTone | FieldReference | "info" | Badge color |
link | TableRowLink | None | Navigate on click |
variant | CardVariant | "default" | Visual style |
Example
ts
Card({
title: "Status",
content: Value({ source: status(), field: "ok" }),
variant: "metric",
badge: { label: "Healthy", tone: "healthy" },
})Supporting types
CardVariant
export type CardVariant =
| "default"
| "subtle"
| "metric"
| "interactive"
| "panel";CardBadgeTone
export type CardBadgeTone = "healthy" | "warning" | "unavailable" | "info";CardValue
export type CardValue = string | FieldReference;