Meter

A measurement within a known range (role=meter).

Storage72%

No label

Tones

Disk usage32%
Memory78%
Quota94%

Thresholds

CPU42%
Memory73%
Disk91%

API reference

Inputs

PropTypeDefaultDescription
valuenumber0Current measurement; clamped between `min` and `max`.
minnumber0Minimum value of the meter range.
maxnumber100Maximum value of the meter range.
labelstring | nullnullOptional text label shown above the meter bar.
tone"danger" | "default" | "good" | "warning"'default'Fill colour tone; overridden by any matching threshold.
thresholdsreadonly { at: number; tone: keyof typeof TONES; }[][]Auto-pick the fill tone by value: the highest threshold whose `at` ≤ value wins.
showValuebooleantrueWhether to display the formatted value text next to the label.
unitstring'%'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.