Each NeuMeterItem provides label, value and an optional CSS color. A positive total defines capacity; total 0 uses the sum of items. With a larger total, the uncovered track represents remaining capacity. Negative and non-finite values count as 0; excess values are capped in item order. showLegend adds names and percentages. This is a distribution meter, not an operation progress tracker.
The application supplies items and total. MeterGroup derives the rendered distribution and does not modify the supplied array. There are no Outputs or templates.
Give the meter a descriptive ariaLabel and keep the legend visible to explain every segment without relying on color. The meter exposes the normalized total and used value. Include the units and remaining capacity in adjacent text. There is no keyboard interaction.
Key
Action
โ
Give the meter a descriptive ariaLabel and keep the legend visible to explain every segment without relying on color. The meter exposes the normalized total and used value. Include the units and remaining capacity in adjacent text. There is no keyboard interaction.
Segment label, numeric value and optional CSS color.
rounded
boolean
true
[rounded]
Fully rounded track corners.
showLegend
boolean
true
[showLegend]
Show segment names and normalized percentages.
total
number
0
[total]
Positive reference capacity; 0 uses the sum of valid item values.
Templates
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
This component does not expose content projection or public customization templates.
Public Types
Open a type to inspect its definition and interface fields.
NeuMeterItem.d.ts
import type { NeuMeterItem } from '@neural-ui/core/meter-group';
// Public declaration (reference only)
export interface NeuMeterItem {
color?: string;
label: string;
value: number;
}