amankaushik481

Meter

Component

About

A horizontal gauge bar with an accessible role="meter" and value text, used to show storage, quota or usage levels against a known max.

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 } from "@/components/ui/meter";

export default function MeterDemo() {
  return (
    <div className="w-full max-w-sm">
      <Meter
        label="Storage"
        value={42}
        max={50}
        valueText="42 of 50 GB"
        showValue
      />
    </div>
  );
}

More by amankaushik481

View all
  • Icon Button

    Icon Button

    14
  • Background Boxes

    Background Boxes

    12
  • Chip Filter

    Chip Filter

    8
  • Typing Text

    Typing Text

    7
  • Treemap Chart

    Treemap Chart

    6
  • File Dropzone

    File Dropzone

    5
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2