# V meter 8

> Upload progress card

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/v-meter-8).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-meter-8
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-meter-8-light-86da6810b395b84a.png
- Registry item: https://ui.cnippet.dev/r/v-meter-8.json
- Categories: meter
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-meter-8.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/meter`

## Files

### `registry/default/variants/v-meter-8.tsx`

```tsx
"use client";

import {
  Meter,
  MeterIndicator,
  MeterLabel,
  MeterTrack,
  MeterValue,
} from "@/registry/default/ui/meter";

const PLAN_LIMIT = 10000;

const seats = [
  { label: "Alice Chen", used: 8240 },
  { label: "Bob Kim", used: 3100 },
  { label: "Carol Day", used: 9870 },
  { label: "Dave Osei", used: 1500 },
];

function fmt(n: number) {
  return n >= 1000 ? `${(n / 1000).toFixed(1)}k` : String(n);
}

export default function Particle() {
  return (
    <div className="w-full max-w-sm space-y-4">
      <p className="font-medium text-sm">API usage by member</p>
      {seats.map(({ label, used }) => (
        <Meter key={label} max={PLAN_LIMIT} value={used}>
          <div className="flex items-center justify-between gap-2">
            <MeterLabel>{label}</MeterLabel>
            <MeterValue>{() => `${fmt(used)} / ${fmt(PLAN_LIMIT)}`}</MeterValue>
          </div>
          <MeterTrack>
            <MeterIndicator />
          </MeterTrack>
        </Meter>
      ))}
    </div>
  );
}
```
