Meter
stableA quantitative measurement within a known range.
Basic usage
Examples
Storage usage
Show disk or quota usage with thresholds for low, high, and optimum.
Storage47 GB / 100 GB
Threshold examples
Meter communicates known ranges with low, high and optimum thresholds.
Features
- low / high / optimum thresholds.
- role="meter".
Installation
bash
pnpm dlx structyl add meterAPI Reference
Meter
A quantitative measurement display.
| Prop | Type | Default |
|---|---|---|
| value | numberCurrent value. | — |
| min | numberMinimum value. | 0 |
| max | numberMaximum value. | 100 |
| low | numberUpper bound of the low range. | — |
| high | numberLower bound of the high range. | — |
| optimum | numberThe optimal value. | — |