Skip to content

KpiValue

Open .md
Live preview

Loading example…

The highlighted number of a composed Kpi, coloured by the tile’s tone.

import { KpiValue } from "@jcsoftdev/ui/containers";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/containers/kpi.

<KpiValue
label="Citas hoy"
value="12"
description="3 pendientes"
variant="default"
/>
Prop Type Default Description
suffix ReactNode Small suffix next to the number.
trend ReactNode Change indicator next to the value.
mono boolean Monospaced digits at a steady weight, for amounts and codes.

* marks a required prop.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/containers/kpi/kpi.tsx