Skip to content
SevenUI
Sign in
On this page

Meter

Displays a value within a known range, built on the Base UI Meter primitive.

Storage used
x

Installation

Bash

Usage

Examples

Custom format

format takes Intl.NumberFormatOptions — here a raw gigabyte value with max={256} instead of the default percentage.

Disk space
x

System resources

CPU
x
Memory
x
Bandwidth
x

API reference

Meter is a Base UI bonus primitive absent from shadcn/ui, like Number Field and Toolbar.

Meter

Extends the Base UI Meter Root — all its props (value, min, max, format, …) apply, and the track and indicator are rendered automatically. role="meter" semantics for a value within a known range — use Progress for task completion instead. value is required and non-nullable; there is no indeterminate state. The default display is a percentage; pass format (Intl.NumberFormatOptions, e.g. { style: "unit", unit: "gigabyte" }) to change it.

MeterLabel and MeterValue

Extend the Base UI Label and Value parts. The label wires aria-labelledby on the root automatically; the value renders the formatted current value.

Was this page helpful?