Meter
A limit or quota: label and value, a 6px pill track, threshold ticks and a caption. Progress for work.
Monthly budget$32.10 of $50.00
Resets in 12 days
<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"
labelReactNodeThe label above the bar.
leadingReactNodeLeading content in the label row (an icon).
thresholdsnumber[] = []Alert thresholds as ratios, drawn as ticks: [0.5, 0.8].
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"