‹ components

StatCell

stablev1.0.0·open in canvas

Label-over-value stat block; padding and type ride the density tokens.

Installnpx shadcn add @cids/stat-cell
Live demo
Market cap
$1.09B
24h volume
$84.2M+12.40%
Liquidity
$18.7M−0.80%

Motion · tap to replay

honors reduced-motion

None.

This component declares no motion.

Brand chip remounts on tap · highlighted tokens are named in this component's doc · spring is budgeted to human feedback only.

import { StatCell, PriceChange, RollingNumber } from "@/design-system";

<StatCell label="Market cap" value="$1.09B" />
<StatCell label="Price" value={<RollingNumber value="$184.26" />} change={<PriceChange value={3.6} />} />

Tokens · live

Resolves in the active theme — flip the toggle above to verify.

Label-over-value stat block; padding and type ride the density tokens.

Anatomy

MARKET CAP          <- 10px uppercase fg-muted
$1.09B  ▲ +3.60%    <- data-md value + optional delta

Props

PropTypeDefaultNotes
labelstring--Uppercase micro-label.
valueReactNode--Pre-formatted figure or RollingNumber.
changeReactNode--Pass a PriceChange to keep sign discipline.
classNamestring--cn-merged.

Motion

None.

A11y

Self-contained: copy the folder into any Tailwind+React app, or use the install command above. Docs and this page render the same file on disk — they cannot drift.