Status
Meter
A meter shows how much of a known total is done or used, such as focus minutes against the day's goal, items done or each person's share in a project.
In kanso-ui as Meter
Variants and sizes
- Continuous: one
k-meter__fillwith a width, for minutes and money. - Segmented:
k-meter--segmented, one segment per item, for counts up to 8. Items not done yet arek-meter__fill--empty. - Late:
k-meter__fill--latehatches a segment incautionandcaution-stripe. - Ink:
k-meter__fill--inkwhen the bar compares people rather than progress toward a goal. - Thick:
k-meter--thick, 8 px, for each person's share of a project, withk-meter__markerat the target.
States
- Empty, partial, full: the written value always says how far ("0/100 min", "100/100 min"), so length is never the only cue.
- Late: a hatched segment plus the word in the caption, "1 late" in
caution. The hatch is a pattern, so it reads without colour. - Target: the marker is
on-inkwhere it crosses the ink fill andinkwhere it falls on the empty track, so it always shows.
A meter is not interactive: no hover, focus or pressed states.
Do and don’t
Do
Write the value beside the bar, in figures: "50/100 min".
Use segments for small counts and a continuous fill for minutes and money.
Say "late" in words next to a hatched segment.
Don’t
Fill a segment with
cautionwithout the hatch and the word.Use a meter to show loading.
What you provide
- Label, value, total and unit; for segments, the count and which ones are late.
- An optional caption, the target for the marker, and the
aria-valuetextoraria-labelsentence.