Skip to content

components/stat

StatProps = object & Omit<HTMLAttributes<HTMLDListElement>>, "children">>

Props accepted by Stat.

label: ReactNode

value: ReactNode

optional description?: ReactNode

optional density?: "regular" | "compact"

Reduce internal padding when a statistic sits inside a compact card.

const Stat: ForwardRefExoticComponent<object & Omit<HTMLAttributes<HTMLDListElement>>, "children"> > & RefAttributes<HTMLDListElement>>>>

A compact statistic presentation for caller-provided values.