About
A composable meter/gauge that displays a static numeric measurement within a known range (like disk usage or a score), with optional low/high/optimum thresholds that recolor the fill to signal good, borderline, or bad readings.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Meter to your project and fits it to your theme.
Code
How Meter is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import {
Meter,
MeterLabel,
MeterValue,
MeterProgress,
} from "@/components/ui/meter";
export default function MeterDefault() {
return (
<Meter value={64} className="w-72 max-w-full">
<MeterLabel>Storage</MeterLabel>
<MeterValue />
<MeterProgress />
</Meter>
);
}







