Meter
A measurement within a known range (role=meter).
Storage72%
No label
Tones
Disk usage32%
Memory78%
Quota94%
Thresholds
CPU42%
Memory73%
Disk91%
API reference
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | 0 | Current measurement; clamped between `min` and `max`. |
min | number | 0 | Minimum value of the meter range. |
max | number | 100 | Maximum value of the meter range. |
label | string | null | null | Optional text label shown above the meter bar. |
tone | "danger" | "default" | "good" | "warning" | 'default' | Fill colour tone; overridden by any matching threshold. |
thresholds | readonly { at: number; tone: keyof typeof TONES; }[] | [] | Auto-pick the fill tone by value: the highest threshold whose `at` ≤ value wins. |
showValue | boolean | true | Whether to display the formatted value text next to the label. |
unit | string | '%' | Unit suffix appended to the displayed value (e.g. "%"). |
Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.