Meter

A horizontal gauge bar using role meter with aria value attributes, an optional label and a fill clamped to 100 percent. For storage, quota and usage limits.

src/registry/ui/meter.tsx/r/meter.json

Installation#

bash
npx shadcn@latest add @minidev/meter

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/meter.json

Usage#

tsx
import { Meter } from "@/components/ui/meter"

export function Example() {
  return <Meter />
}

API reference#

Meter props
PropTypeDefault
value*number-
maxnumber100
labelstring-
classNamestring-

* required

All alerts, toasts and empty states