Genesis
@beta

StatCard

A labelled number on a dashboard: the stat tile. Draws the one widget tile (`WidgetTile`, variant `stat`, part `stat-card`), so an app style changes it with every other tile. For a number fed by a view, use `<Widget>` with a `number` widget.

packages/ui/src/components/data/StatCard.tsx

Import
Subpath export: @marktiderman/genesis-ui/data
import { StatCard } from "@marktiderman/genesis-ui/data";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

StatCard

A labelled number on a dashboard: the stat tile. Draws the one widget tile (`WidgetTile`, variant `stat`, part `stat-card`), so an app style changes it with every other tile. For a number fed by a view, use `<Widget>` with a `number` widget.

PropTypeDefaultDescription
label*string—
value*string | number—
classNamestring—
colorstringprimarySemantic color key or raw Tailwind class
hrefstring—When set, the card renders as a link to this path.
iconLucideIcon—
linkComponentLinkComponent—Injectable link component used when `href` is set. Defaults to a plain `<a>` (no router). Pass a router adapter for client-side navigation.
trend{ value: number; label: string; }—