MeterGroup displays scalar measurements within a known range.
import { MeterGroup } from 'primereact/metergroup';
MeterGroup requires a value as the data to display where each item in the collection should be a type of MeterItem.
<MeterGroup values={values} />
Adding more items to the array displays the meters in a group.
<MeterGroup values={values} />
Icons can be displayed next to the labels instead of the default marker.
<MeterGroup values={values} />
The position of the labels relative to the meters is defined using the labelPosition property. The default orientation of the labels is horizontal, and the vertical alternative is available through the labelOrientation option.
<MeterGroup values={values} labelPosition="start" labelOrientation="vertical" />
MeterGroup requires a value as the data to display where each item in the collection should be a type of MeterItem.
<MeterGroup values={values} orientation="vertical" labelOrientation="vertical" />
Boundaries are configured with the min and max values whose defaults are 0 and 100 respectively.
<MeterGroup values={values} max="200" />
MeterGroup requires a value as the data to display where each item in the collection should be a type of MeterItem.
<MeterGroup values={values} />
MeterGroup component uses meter role in addition to the aria-valuemin, aria-valuemax and aria-valuenow attributes. Value to describe the component can be defined using aria-labelledby prop.
Component does not include any interactive elements.