Capítulo 29 de 51
A read-only gauge (not interactive, unlike Progress/Slider) for displaying a static measurement against a range — battery level, disk usage, a rating — rendering the native meter/progressbar accessibility role with a formatted value text.
Root → Label, Track → Indicator, Value.value is required on Root (marked with *) — Meter always displays a specific measurement, unlike Progress which supports an indeterminate state.format/locale on Root control number formatting (e.g. percentages, units) shown by Value; aria-valuetext/getAriaValueText override the accessible text independently of the visual formatting when they need to differ.min/max: define the gauge's range, defaulting to the standard 0–100 if omitted.| Part | Notable props |
|---|---|
Root | value (required), min, max, format, locale, aria-valuetext, getAriaValueText |
Indicator / Track / Label / Value | styling-only parts, no component-specific props |
getAriaValueText whenever the visually formatted value (e.g. "72%") needs a more descriptive screen-reader announcement (e.g. "72 percent full, 3.6 of 5 GB used").