Meter
v0.17.4A level within a known range, neutral until it crosses a threshold; inline for table cells.
Meter levels
Install
npx shadcn add @syncrobotic/meter Also installs: @syncrobotic/cn
Overview
When to use
- Battery, storage, signal strength, CPU.
- Inline in a table cell, or above a value in a card.
Use something else
- Work that is under way and will finish: Progress.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Meter inline
Meter higher is worse
Meter storage
Meter grid
Usage rules
- For a level in a known range (battery, storage). For work under way, use Progress.
- Neutral while normal; warning past
low, danger pastcritical; the value is always written. A battery takes onlylow(15 %): a low battery needs attention, it is not a failure, so it turns warning and never danger. Danger is for a level that breaks something, like full storage. inlinein table cells; the label is still read by screen readers.
Changelog
- 0.17.42026-11-21No unused React import, so the file compiles in projects with noUnusedLocals.
- 0.17.32026-11-19Tracks and quiet shapes use the new --track token, so they read in dark mode (1.5:1 on their surface; they were near invisible).
- 0.8.02026-11-17First release.