py_ets

Meter

Component

About

A labeled progress meter bar that shows a percentage value with color that shifts from green to orange to red as it approaches capacity, useful for storage quotas or usage limits.

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/css-meter";

export default function MeterDemo() {
  return (
    <div className="flex items-center justify-center w-full h-full p-10">
      <Meter label="Storage space" value={35} />
    </div>
  );
}

Dependencies

More by py_ets

View all
  • Alert Dialog

    Alert Dialog

    16
  • Progress Bar

    Progress Bar

    12
  • Command Palette

    Command Palette

    10
  • React Aria CheckboxGroup

    React Aria CheckboxGroup

    10
  • Segmented Control

    Segmented Control

    8
  • React Aria DatePicker

    React Aria DatePicker

    8
  • React Aria GridList

    React Aria GridList

    7
  • React Aria Switch

    React Aria Switch

    7