StatisticCard

pro

StatisticCard is a bordered or inset card shell for composing a label, value, and supporting content such as trend indicators, charts, or progress bars.

Installation

Add this component with the NateUI CLI.

npx nateui@latest add StatisticCard

Examples

Open tickets

128

18.2%
Database Throughput (TPS)

2,450

+450vs baseline
New Client

1,862

With Chart

Weekly sessions

3,102

12.5%vs yesterday

With Progress

Storage used

91%

18 GB left of 200 GB

API

PropDescriptionTypeDefault
insetRenders the muted outer frame with an inset body, instead of the plain bordered card.booleanfalse
headerContent shown above the body, in its own bordered/padded region.ReactNode | string—
footerContent shown below the body, in its own bordered/padded region.ReactNode | string—
bodyClassClass names applied to the inner body. Only takes effect when inset is true.string—
classNameClass names applied to the outermost element.string—
childrenThe card's main content.ReactNode—
...restNative div props.ComponentProps<'div'>—