kuratlielia

Usage Meter

Component 45

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>
  );
}

Dependencies

More by kuratlielia

View all
  • Activity Heatmap

    Activity Heatmap

    336
  • Image Compare

    Image Compare

    103
  • User Menu

    User Menu

    93
  • Date Range Picker

    Date Range Picker

    62
  • Stats Band

    Stats Band

    52
  • Signature Pad

    Signature Pad

    37
  • Timeline

    Timeline

    33
  • Card Stack

    Card Stack

    26