Skip to content
HomeCobalt

Meter

Shows how much of a fixed allowance is used, such as seats on a plan or requests against a limit, as a thin bar that fills toward its limit with the amount written beside it.

Examples

Seats used on a plan, as a share of what the plan allows.
Seats
x
In a cardA plan's allowances in a card, each a meter with its own limit.

Your plan

Seats
x
Saved searches
x
Exports this month
x

States

Exports this month
x
HighPast its high mark the fill turns the bad colour, and the value says by how much.

Usage

Use it when

  • A fixed allowance that is used up and does not finish, such as seats on a plan, saved searches or exports this month.
  • A level against a limit, where passing a mark is bad news and the amount still needs to be read.

Use something else when

  • Work that finishes, such as an upload. Use Progress instead.
  • An amount whose total is not known. Use Spinner instead.
  • Names ranked by value, each read row by row. Use BarList instead.

Rules

General

Content

Avoid

Install

npx shadcn@latest add https://kaanarici.com/r/cobalt/meter.json
import { Meter, MeterLabel, MeterValue } from "@/components/cobalt/ui/meter"