Meter
A measurement within a known range, such as storage used.
Storage used
When to use
- Use when
- A value within a known range, such as storage used or a score.
- Avoid when
- Progress toward finishing a task; use Progress.
Installation
The source lands in src/components/ui/meter.tsx, along with any Shelf items it builds on, and .shelf/lock.json records what was installed. It's yours to edit.
Usage
Built on
- Packages
@base-ui/react,@stylexjs/stylex- Shelf items
foundations,utils- Accessibility
- Focus, keyboard, and ARIA behavior come from Base UI.
- Figma
- Optional native Figma library. See Designers.
Verified
- Size
- 0.9 kB gzipped on its own, 5.4 kB with the Shelf items and packages it builds on. JS and CSS in a production build, without React.
- Accessibility
- Axe passes on 2 stories
- Behavior
- 2 interaction tests in Storybook
- React Doctor
- React Doctor finds nothing