Components · Data
Metric
One number with its label underneath. Set onScreen inside a Screen; color matches a Chart series.
jsx
import { Metric } from '@andeus/ui';
On paper and on screen
Props
| Prop | Type | Default | |
|---|---|---|---|
| value | string | ReactNode | Required | |
| label | string | ReactNode | Required | |
| delta | string | ReactNode | — | |
| tone | 'neutral' | 'positive' | 'negative' | 'accent' | 'neutral' | |
| color | string | — | Overrides the value colour. |
| onScreen | boolean | false | Screen colours. |
| size | 's' | 'm' | 'l' | 'm' | |
| align | 'start' | 'center' | 'start' |