Components › Blocks

Stat cards

KPI cards: a grey shell, a lit icon tile, the number and a white footer with the change.

Installation

npx plankui@latest add stat-cards

Usage

import { StatCards } from "@/components/ui/stat-cards";

<StatCards>
  <StatCard label="Total revenue" value="$152,313" delta={16} icon={<DollarSign />} />
</StatCards>

API reference

PropTypeDefaultDescription
label / valuestring / ReactNoderequiredWhat it measures and the number.
deltanumberPercent change, shown in the footer.
comparisonstring"From last month"Footer text.
icon / colorReactNode / stringaccentIcon tile and its colour.
infostringTooltip on the info button.
invertbooleanfalseSet when a fall is good.

View the source on GitHub