Stat card

Stat card is a neobrutalist React component from Cruise UI. A dashboard figure: label, a big value that shrinks to fit (never breaking mid-number), an optional up/down change badge with an arrow, a note and an icon. Install it with npx shadcn@latest add @cruiseui/cruise-stat-card.

Install

Terminal

npx shadcn@latest add @cruiseui/cruise-stat-card

First time? Installation shows the one-off components.json setup (the @cruiseui registry) and how to turn the theme on.

Example

Corners

Balance

₦12,482,350

Updated 5 minutes ago

Sales today

₦486,500

Up 12% vs yesterday

Refunds

₦32,000

Down 3% vs last week

Active customers

1,240

No change, 0%

When to use it

When to use

Headline numbers on dashboards: balance, sales, active users. Rows of 2–4 next to a sidebar.

When not to

Long tables of figures (use a Table) or progress towards a goal (use Progress).

Props

CruiseStatCard

PropTypeDefaultDescription
labelReactNode——
valueReactNode—The figure, formatted, e.g. formatNaira(1250000) or "1,240".
change?CruiseStatChange——
note?ReactNode—A short line under the value, e.g. "Updated 5 minutes ago".
icon?ReactNode—An outline icon in a small tile, top right.
className?string——

Accessibility

  • The change badge says "Up 12%" or "Down 3%" in words; the arrow is decorative.
  • The value uses tabular figures, so columns of cards line up.
  • Badge text is ink on a light wash, readable in every city and in Dark mode.