NEURALNG

PUBLIC CONTRACT

MeterGroup API

Inputs

NameTypeDefaultDescription
items readonly NeuralMeterItem[][] Immutable measurement definitions.
min number0 Shared lower bound.
max number100 Shared upper bound; invalid bounds normalize safely.
orientation 'horizontal' | 'vertical''horizontal' Meter axis.
labelPosition 'start' | 'end''end' Logical label placement.
labelOrientation 'horizontal' | 'vertical''horizontal' Legend flow.
showLabels booleantrue Shows the visible legend.
showValues booleantrue Shows formatted values in the legend.
valueFormatter NeuralMeterValueFormatter | nullnull Formats visible values without changing ARIA values.
ariaLabel string | nullnull Direct accessible group name.
ariaLabelledBy string | nullnull References an external group label and takes precedence.
unstyled booleanfalse Removes NeuralNg visual classes.
meterGroupClass string'' Adds consumer root classes.
classes NeuralMeterGroupClasses{} Typed class slots.

NeuralMeterItem

labelstring

Required visible and accessible name.

valuenumber

Raw value normalized into the shared range.

colorstring

Optional CSS color overriding the palette.

iconClassstring

Optional icon and utility classes for the legend.

valueTextstring

Optional human-friendly aria-valuetext.

Typed class slots

rootmetersmeterlabelslabelItemmarkericonlabelvalue