Skip to content

Meter

A usage track: a bar of coloured segments against a maximum, with a caption and a value.

Group: Feedback · Kind: macro · in the lite catalog

example
Storage650 MB of 1 GB

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-meter on Web
exponential-ui-meter on iOS
exponential-ui-meter on Android
exponential-ui-meter on Desktop
Prop Type Required Bindable Description
segments [segment] yes – The slices in order.
max number – – The full amount. Default 100.
label string – – A caption before the track.
value string – – A formatted value after the track.

None.

None.

none

No basic catalog component maps here.

Box · Text

Role: meter

meter (value of max, labelled by its label)

Not focusable; no keys.

Recipe parts: Meter/root Meter/header Meter/label Meter/value Meter/track Meter/segment

Keyed by: tone :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Text · Badge · Alert · Chip · EmptyState · Progress · Ring · Spinner