Score counter

Score counter is a neobrutalist React component from Cruise UI. Coins or points in Baloo 2 with a coin or star chip; counts up when it changes, with a floating +50. Install it with npx shadcn@latest add @cruiseui/score-counter.

Install

Terminal

npx shadcn@latest add @cruiseui/score-counter

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

Example

Corners
Coins: 12,450Stars: 980

When to use it

When to use

Game HUDs and loyalty points.

When not to

Money people spend (show the amount plainly).

Props

CruiseScoreCounter

PropTypeDefaultDescription
valuenumber——
label?string"Coins"What it counts, for screen readers ("Coins", "Score").
icon?ReactNode"coin"—
showDelta?booleantrueFloat "+50" when the value goes up.
className?string——

Accessibility

  • Screen readers hear the new total once (aria-live polite), never the frames in between.
  • Counting and the floating +50 stop under reduced motion.