About
An animated allowance gauge that breaks total usage into categories against a plan limit, with a rolling number counter and a segmented progress bar that warns when nearing or over the limit.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Usage Meter to your project and fits it to your theme.
Code
How Usage Meter is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import UsageMeter from "@/components/ui/usage-meter";
export default function UsageMeterDemo() {
return (
<div className="w-full max-w-md p-6">
<UsageMeter
label="Workspace storage"
limit={100}
unit="GB"
segments={[
{ id: "documents", label: "Documents", value: 38 },
{ id: "media", label: "Media", value: 22 },
{ id: "backups", label: "Backups", value: 14 },
]}
/>
</div>
);
}








