Skip to content
ghostui

Meter

A graphical display of a numeric value within a range.

Preview

Trip photos
76 GB availablex

Basic usage

Structure

Examples

The Preview above is the canonical meter example. Compose it with the public parts shown in Structure.

Context budget

The caller owns the token math and passes finite usage and limit values to Meter. The control demonstrates the warning threshold and the full boundary.

Context usage
x
Context has room for more.

Monthly budget surface

Meter.Background fills a caller-owned surface. It reports capacity usage but does not own a budget rule or threshold tone; the caller owns the copy, card composition, and any warning treatment.

GroceriesOctober
$186spent of $300
$114 left this month

API reference

For inherited behavior and additional part properties, see the Base UI Meter API.

Accessibility

Name the measured capacity with Meter.Label or aria-label. A meter reports a value within a range. It does not announce task completion. Meter.Background announces an unavailable target when no positive capacity exists. Use aria-valuetext for units or an overflow amount.

Installation

Install the component and its declared source dependencies. The command follows this page's registry origin and your configured aliases.

Install