components

WidgetCard

A compact glanceable card: a title, one big figure with a caption beside it, and a footnote under a hairline rule. Weather, a single KPI, a queue depth. For several related figures use a Grid of Stats instead.

tsx
Toronto
5°overcast clouds

<WidgetCard />

Examples

Pass onOpen (and openLabel, its accessible name) to turn the title into a button with a trailing arrow:

tsx
5°overcast clouds

<WidgetCard
  title="Toronto"
  value="5°"
  caption="overcast clouds"
  footer="Feels like 1°."
  onOpen={() => {}}
  openLabel="Open Toronto forecast"
/>

Props

PropTypeDefaultDescription
captionreadonly—Short descriptor beside the figure (`"overcast clouds"`).
footerreadonly—Small-print line under the divider.
onOpenreadonly—When set, the title becomes a button with a trailing arrow. Needs `openLabel`.
openLabeltext—Accessible name of the open button.
title *readonly—Heading of the widget — a place, a metric name.
value *readonly—The headline figure, already formatted (`"5°"`).