kuratlielia

Usage Meter

Component 52

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

    480
  • Image Compare

    Image Compare

    129
  • User Menu

    User Menu

    102
  • Date Range Picker

    Date Range Picker

    76
  • Stats Band

    Stats Band

    71
  • Signature Pad

    Signature Pad

    40
  • Timeline

    Timeline

    38
  • Ridgeline Chart

    Ridgeline Chart

    32