Components / Base / Meter

B6 · Base

Meter

A track with ok, warn, and over fills. The percent is also a label.

When to use

  • A single percent needs a track.
  • The band is ok, warn, or over.

When not to use

  • The value is a time series.
  • Several meters would be clearer as a table.

Usage

<div class="meter" role="meter" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" aria-label="Queue">
  <i class="warn" style="width:70%"></i>
</div>

Variants

The preview shows the form used in the gallery.

Props

NameTypeDefaultDescription
.meter > iwidth—Fill percent.
.warnclassabsentWarn colour.
.overclassabsentDanger colour.
role=meteraria—valuenow, valuemin, valuemax, and a label.

Keyboard

KeyAction
TabMoves past the meters. They are not sliders.

Accessibility

Motion

Pattern origin

Base control. .meter is in yravg-ui v1.0.

Related

KPI tilesData tableSkeleton