MindeesUI
ComponentsDisplay

KPICard

A metric card showing a label, a prominent value, and an optional trend delta tinted by direction.

KPICard presents a single metric inside a Card: a muted label with an optional icon, a large value, and an optional delta. The delta's tone is driven by direction — green for up, red for down, muted for neutral. Pass onPress to make the whole card tappable.

Import

import { KPICard } from '@mindees/ui';

Usage

<KPICard label="Revenue" value="$12.4k" delta={{ value: '+8.2%', direction: 'up' }} />

Props

PropTypeDefaultDescription
labelstringCaption shown above the value.
valueReactNodeThe metric; strings/numbers render as a heading.
deltaKPIDeltaTrend { value, direction? } shown below the value.
iconReactNodeOptional leading icon rendered beside the label.
onPress() => voidMakes the card tappable.
styleStyleProp<ViewStyle>Style overrides for the card.

KPIDelta.direction is 'up' | 'down' | 'neutral'. Inherits the remaining ViewProps (except style).

Accessibility

When onPress is set the underlying Card becomes a button. Otherwise the card is a static surface; keep the label descriptive so the metric reads in context.

On this page