Meter
A bounded measurement that distinguishes a reading from task completion.
Live — this one is real
Storage used68 GB of 100 GB
Usage
import { Meter } from "mizu-ui";
export function Example() {
return (
<Meter
label="Storage used"
value={68}
low={30}
high={85}
optimum={20}
format={(v) => `${v} GB of 100 GB`}
/>
);
}
Source & setup
Import mizu-ui/styles.css once. Fonts are optional via mizu-ui/fonts.css. Override --mizu-* tokens or use className for local styling. Uses native React and CSS; install the package peers for root imports.
Inspect status/Feedback.tsx
Source is included in the npm package under src/status/Feedback.tsx.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value / min / max | number | — | Current reading and limits. |
| low / high / optimum | number | — | Native measurement thresholds. |
| format | (value: number) => string | — | Visible value formatting. |
Accessibility
Uses native meter semantics rather than progress. Text repeats the meaningful unit and value.
Motion
CSS transitions explain state changes. Reduced motion removes travel.