Skip to content

Meter

Stable

A thin bar that shows how much of something is used, and turns amber past a set point.

Also known as meter bar, progress bar, gauge, capacity bar

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Plain

A dark fill, as wide as the amount used out of the limit.

When to use it

A thin bar for an amount out of a limit, such as space used in a chat. It stays dark and only turns amber past the point where the person should act.

Made of: Track · Filled part

Use it for

  • Space used in a conversation, or credits used in a plan.
  • Any amount with a known limit that people may need to act on.
  • A building block inside a larger meter that adds words around it.

Not for

Do and avoid

Almost full: 92 of 100 GB used

Do. Words say the bar is nearly full, not just the color.
Avoid. An amber bar with no words means nothing to some people.

Do

  • Add words for the amount, so it makes sense when read aloud.
  • Set a warning point only when the person can do something about it.
  • Put words beside the bar that explain the warning.
  • Set a limit for amounts that are not percents.

Avoid

  • Do not use it for a task with no known total. Use a moving indicator.
  • Do not rely on amber alone for the warning.
  • Do not use it for something with no limit.
  • Do not announce every small change to screen readers.

On a phone

  • The bar fills the width of its container and is 6px tall, which is a display, not a tap target.
  • Show the value as text beside it, since a thumb covers a bar this thin.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started