Builtin component

Card

Versatile container with title, badge, and link.

Props

PropTypeDefaultDescription
contentPageNode | PageNode[]—Child nodes
titlestring | FieldReference—Card heading
descriptionstring | FieldReference—Subtext
iconstring | FieldReference—Icon name
badgestring | FieldReference—Badge label
badgeTone"healthy" | "warning" | "unavailable" | "info""info"Badge color
linkTableRowLink—Navigate on click
variant"default" | "subtle" | "metric" | "interactive" | "panel""default"Visual style

Example

Card({
  title: "Status",
  content: Value({ source: status(), field: "ok" }),
  variant: "metric",
  badge: { label: "Healthy", tone: "healthy" },
})