Meter API
View componentThe full prop reference for the Meter component. A quantitative measurement within a known range.
Import
import { Meter } from '@structyl/styled';Props
Meter
A quantitative measurement component that displays a progress bar with low/high/optimum thresholds and automatic status coloring (normal, sub-optimal, optimal).
| Prop | Type | Default |
|---|---|---|
| value# | numberThe current value of the meter (required). Clamped between min and max. | — |
| min# | numberThe minimum value of the meter range. | 0 |
| max# | numberThe maximum value of the meter range. | 100 |
| low# | numberThe lower threshold value. Values below this trigger sub-optimal status. | — |
| high# | numberThe upper threshold value. Values above this trigger sub-optimal status. | — |
| optimum# | numberThe optimal value. When defined, affects status calculation for values beyond low/high thresholds. | — |
| label# | stringAccessible label for the meter, used in aria-label attribute. | — |
| className# | stringAdditional CSS classes to merge with default meter styles. | — |
Source code
If you didn't find what you need here, read the component implementation .