Component docs
Loading
import { Meter } from "@pixxl-tools/components";
// In Server Components:
import { Meter } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
value (required) | number | — | Current value (controlled); null where it means "nothing selected". |
max | number | — | — |
min | number | — | — |
tone | "primary" | "danger" | "success" | — | Colour role (neutral, primary, danger, success, warning, info). |
valuerequirednumber
Current value (controlled); null where it means "nothing selected".
maxnumber
minnumber
tone"primary" | "danger" | "success"
Colour role (neutral, primary, danger, success, warning, info).
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
<Meter value={0.6} />