Component docs
Loading
import { Stat } from "@pixxl-tools/components";
// In Server Components:
import { Stat } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
label | ReactNode | — | Visible label (also the accessible name). |
value | ReactNode | — | Current value (controlled); null where it means "nothing selected". |
description | ReactNode | — | Supporting text. |
trend | ReactNode | — | — |
labelReactNode
Visible label (also the accessible name).
valueReactNode
Current value (controlled); null where it means "nothing selected".
descriptionReactNode
Supporting text.
trendReactNode
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
<Stat label="Frames" value="240" />