Skip to main content

Meter

Show how much of something is used, whole or split into shares, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
valuenumber-
minnumber-Defaults to Base UI's own Meter minimum (0).
Defaults to Base UI's own Meter minimum (0).
maxnumber-Defaults to Base UI's own Meter maximum (100).
Defaults to Base UI's own Meter maximum (100).
labelReactNode-Text above the track, correctly wired to it via Base UI's own Meter.Label.
Text above the track, correctly wired to it via Base UI's own Meter.Label.
descriptionstring-
iconReactNode-
segmentsMeterSegment[]-
unitstring-Reads the value as an amount, 12.7 of 20 GB, in place of a percentage.
Reads the value as an amount, 12.7 of 20 GB, in place of a percentage.
reststring-Names the empty part of the track in the legend, Free for storage.
Names the empty part of the track in the legend, Free for storage.
intentneutral | info | success | warning | dangerneutral
shapenone | pillpill
animatedbooleantrue
classNamestring-