Meter
A limit or quota: label and value, a 6px track cut square, threshold ticks and a caption. Progress for work.
<Meter className="w-400" label="Monthly budget" value={0.642} valueLabel="$32.10 of $50.00" thresholds={[0.8]} caption="Resets in 12 days" />import { Meter, Progress } from "@logicplanes/kaeso-ui";Props
aria-labelstringThe accessible name, for when there is no visible label.
captionReactNode"Resets in 12 days"; near or over the limit, say what happens, such as "Over the limit: requests are refused".
labelReactNodeThe label above the bar, or the caption under a gauge's arc.
leadingReactNodeLeading content in the label row (an icon).
shape"bar" | "gauge" = barA bar (
bar), or a half circle with square ends (gauge) with the number in its middle and, under its caption, near or over the limit.thresholdsnumber[]Alert thresholds as ratios, drawn as ticks: [0.5, 0.8]. A gauge marks 0.8 when none are given.
tone"neutral" | "auto" = autoColors the bar by how full it is (
auto) or keeps it neutral.trailingReactNodeContent at the end of the label row, such as the value.
valuenumber0–1 (or more when over the limit).
valueLabelReactNode"$32.10 of $50.00"
valueTextstringWhat screen readers hear as the value when
valueLabelis not plain text, such as a shortened figure with the exact one in a tooltip: "10,624,184 of 100,000,000".