Stat cards
KPI cards in two looks: a compact plain row (icon tile, label, value, delta chip) and a footer variant with a tinted gradient icon tile, an info tooltip, a display-size value and a comparison band with a delta pill; they reflow from one to four columns with their container.
What it is for
Top row of a dashboard: revenue, orders, customers, refunds (give it the page width).
Use it
1 · site.json
"effects": { "components": ["stat-cards"] }or on the command line
node ~/.claude/skills/sitewright/scripts/scaffold.mjs --config site.json --out ./my-site --components stat-cards2 · import it
import { StatCards } from '@/components/fx/ui';Files
components/fx/ui/StatCards.tsxcomponents/fx/ui/_bui-pop.tsxcomponents/fx/ui/_bui.tsxcomponents/fx/ui/LICENSE-boardui.txtui-bui-base.cssstylesui-stat-cards.cssstyles
Source
Adapted from BoardUI (MIT). Restyled in plain CSS and rewritten without its libraries; the upstream licence and notice are kept (see THIRD_PARTY_NOTICES.md).
Credits and licences: third-party notices.
Accessibility
- Keyboard. Components in the kit are written to be reached and used with the keyboard. Try it: press Tab inside the preview.
- Reduced motion. With
prefers-reduced-motionon, animation settles to its finished state at once. - Touch. Pointer-follow effects are skipped on touch screens; controls stay finger-sized.