Skip to Content
SmartUI

KPI

Card for one key number, with its change and context.

Bookings today
128+12%
Yesterday: 114
Patients arrived
96+8%
Last 7 days
Results uploaded
128
64% of target 200

Loading and negative change

Bookings today
No-shows
7+2
Yesterday: 5

Usage

import { KPI } from '@smartui/react';
import '@smartui/react/styles.css';

When to use

  • Numbers watched every day.

When not to use

  • A number without context or comparison.

Props

PropTypeDefaultDescription
titlestringrequired
valuenumber | stringrequiredNumbers are formatted automatically.
trendTrendChipProps-
chartDatanumber[]-Adds a sparkline.
progressnumber (0 to 100)-
footerstring-
iconIconName-
isLoadingbooleanfalse

Accessibility

  • The sparkline is decorative: the trend chip already states the direction.

On this page