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/dataimport { 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.
| Prop | Type | Default | Description |
|---|---|---|---|
| label* | string | — | |
| value* | string | number | — | |
| className | string | — | |
| color | string | primary | Semantic color key or raw Tailwind class |
| href | string | — | When set, the card renders as a link to this path. |
| icon | LucideIcon | — | |
| linkComponent | LinkComponent | — | 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; } | — |