On this pageFunctions
Ui/Meter
/** Renders an accessible meter as a stateless controlled view. */
<Message>(
config: ViewConfig<Message>,
h: HtmlBuilder<Message>
): Html/** Attribute groups provided to a Meter view. */
type MeterAttributes = Readonly<{
fill: ReadonlyArray<Attribute<Message>>
label: ReadonlyArray<Attribute<Message>>
meter: ReadonlyArray<Attribute<Message>>
}>/** Configuration for rendering a Meter with view. */
type ViewConfig = Readonly<{
ariaLabel: string
ariaLabelledBy: string
high: number
id: string
low: number
max: number
min: number
optimum: number
toView: (attributes: MeterAttributes<Message>) => Html
value: number
valueText: string | (value: number, max: number) => string
}>