NeoTerm UI

KPI Card

Key performance indicator card with optional sparkline and trend arrow.

Import

import { KpiCard } from "neoterm-ui";

Usage

<KpiCard
  label="Revenue"
  value="$12,450"
  change={5.2}
  trend="up"
  sparkData={[10, 15, 12, 18, 22, 20, 25]}
/>

Props

PropTypeDefaultDescription
labelstringKPI label text.
valuestring | numberPrimary display value.
changenumberPercentage change.
trend"up" | "down" | "flat"Trend direction.
unitstringUnit suffix.
sparkDatanumber[]Data points for inline sparkline.
sparkColorstringSparkline color.
classNamestringAdditional CSS classes.