ui

Meter

A graphical display of a numeric value within a range. Built with Base UI and Tailwind CSS. Copy-paste ready.

API Reference

Installation

Usage

API Reference

Meter

Root component. Styled wrapper for Meter.Root from Base UI with flex column layout.

MeterTrack

Track container for the meter indicator. Styled wrapper for Meter.Track from Base UI.

MeterIndicator

Visual indicator showing the current value. Styled wrapper for Meter.Indicator from Base UI.

MeterLabel

Label text for the meter. Styled wrapper for Meter.Label from Base UI.

MeterValue

Displays the current value. Styled wrapper for Meter.Value from Base UI.

Examples

With Label

Renders a MeterLabel above the track to describe what the meter measures (e.g. "Storage used").

With Formatted Value

Uses MeterValue with a custom formatter to display the current value as a percentage or human-readable string.

With Range

Sets explicit min and max values to represent a bounded measurement, such as available disk space or quota usage.

Stacked Resource Meters

Three labeled meters rendered in a vertical list — CPU, Memory, and Disk — each showing live percentage values for a system dashboard.

Color-Coded by Severity

MeterIndicator receives a dynamic className (green / amber / destructive) based on thresholds, giving instant visual feedback on metric health.

Storage Breakdown with Icons

Each meter row has a small icon prefix in the MeterLabel and a custom MeterValue formatter showing used / total GB instead of the default percentage.

Upload Progress Card

A bordered card with a header icon, descriptive sub-label ("3 of 5 files complete"), and a single meter showing batch upload progress.

Profile Strength Checklist

A meter paired with a completion checklist — finished steps are struck through in muted text, remaining steps are highlighted, giving users a clear path to 100%.