structyl

The full prop reference for the Meter component. A quantitative measurement within a known range.

Import

tsx
import { Meter } from '@structyl/styled';

Props

Meter

A quantitative measurement component that displays a progress bar with low/high/optimum thresholds and automatic status coloring (normal, sub-optimal, optimal).

PropTypeDefault
value#number

The current value of the meter (required). Clamped between min and max.

min#number

The minimum value of the meter range.

0
max#number

The maximum value of the meter range.

100
low#number

The lower threshold value. Values below this trigger sub-optimal status.

high#number

The upper threshold value. Values above this trigger sub-optimal status.

optimum#number

The optimal value. When defined, affects status calculation for values beyond low/high thresholds.

label#string

Accessible label for the meter, used in aria-label attribute.

className#string

Additional CSS classes to merge with default meter styles.

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library