Stat bar

Stat bar is a neobrutalist React component from Cruise UI. A row of stat boxes for dashboards and game HUDs, with optional meters. Install it with npx shadcn@latest add @cruiseui/stat-bar.

Install

Terminal

npx shadcn@latest add @cruiseui/stat-bar

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

Example

Corners
Passengers14
Fuel72%
Wallet₦1,200

When to use it

When to use

A few key numbers at the top of a dashboard or game screen.

When not to

Long lists of numbers (use a Table).

Props

CruiseStatBar

PropTypeDefaultDescription
statsCruiseStat[]——
columns?4 | 34Boxes per row on desktop (1 on mobile, 2 on tablet).
className?string——

Accessibility

  • Meters are progress bars with role="progressbar" and their values.
  • Labels are text, not just icons.