byronwade/ui
Application UI

Patterns · Application UI

Stat Card

A compact metric tile displaying a labeled value with an optional icon, delta trend pill, and muted hint line.

Feature showcase

Installation

Features

  • 6 examples

    Default, Delta Directions, Grid Dashboard, No Delta, Rich Value, With Icons.

API

Props

PropTypeDefaultDescription
labelstring-Short text label shown above the value.
valueReact.ReactNode-The primary metric value displayed prominently.
hintReact.ReactNodeundefinedOptional muted helper text shown below the value.
delta{ value: string; direction: 'up' | 'down' | 'flat' }undefinedOptional trend pill showing directional change alongside the value.
iconIconundefinedOptional Phosphor icon rendered in the top-right corner of the card.
classNamestringundefinedAdditional CSS classes merged onto the card root element.

Source and related

FilePath
Componentregistry/components/stat-card.tsx
Default examplecontent/examples/stat-card/default.tsx
Delta Directions examplecontent/examples/stat-card/delta-directions.tsx
Grid Dashboard examplecontent/examples/stat-card/grid-dashboard.tsx
No Delta examplecontent/examples/stat-card/no-delta.tsx
Rich Value examplecontent/examples/stat-card/rich-value.tsx
With Icons examplecontent/examples/stat-card/with-icons.tsx