
Visual indicator for scalar measurements within a known range.
npx shadcn@latest add https://ui.edbn.me/api/analytics/registry/meter.jsonGroups all parts of the meter. Renders a div element.
valuenumber0Current value
minnumber0Minimum value
maxnumber100Maximum value
lownumberLow threshold
highnumberHigh threshold
optimumnumberOptimum value
classNamestring | functionCSS class name
renderReactElement | functionCustom render function
| Attribute | Description |
|---|---|
| data-state | Indicates whether value is 'low', 'high', or 'optimum' |
| Variable | Description |
|---|---|
| --meter-value | Normalized value between 0 and 1 |
The background track for the meter. Renders a span element.
classNamestring | functionCSS class name
renderReactElement | functionCustom render function
The filled indicator showing the current value. Renders a span element.
classNamestring | functionCSS class name
renderReactElement | functionCustom render function
An accessible label for the meter. Renders a span element.
classNamestring | functionCSS class name
renderReactElement | functionCustom render function