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
  • Chip Filter

    Chip Filter

    7
  • Icon Button

    Icon Button

    5
  • Background Boxes

    Background Boxes

    4
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2
  • Typing Text

    Typing Text

    1
  • Treemap Chart

    Treemap Chart

    1
  • Particles

    Particles

    1