Hextech UI

Meter

Live example

Meter

Health
x
Energy
x

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/meter.json

API reference

These are the main Meter options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
labelstring (required)—
valuenumber (required)—
min / maxnumber0 / 100
tonegold | teal | destructiveteal
getAriaValueText(formattedValue, value) => string—

Composition notes

Meter describes a measurement within a known range; Progress describes task completion. Supply a visible label, a numeric value and meaningful min/max bounds. getAriaValueText can describe units such as health or energy. Tone supplements the number rather than replacing it.