Meter
Show a measurement within a known range, such as storage usage.
Storage used6.8 of 10 GB
Recommended API
| Property or element | Type | Example initial value | Description |
|---|---|---|---|
min, max, value | Numbers | 0, 10, 6.8 | Show a known amount relative to its range. |
aria-label | Text | Storage used | Explain what is being measured. |
States
| State | Trigger | Result |
|---|---|---|
measured | Render a current value. | The bar fills to the position corresponding to that measurement. |
Svelte implementation guidance
Show a measurement within a known range with an accessible name.
Use semantic HTML and preserve keyboard access. Adapt the example to the project conventions.
CSS variables
| Variable | Type | Default | Description |
|---|---|---|---|
--q-text | color | #28302a | Main text and foreground color. |
--q-muted | color | #70776f | Color for secondary text. |
--q-font-size | length | 13px | Base size for the component text. |
--q-accent | color | #344e41 | Accent for active controls, indicators and focus. |
--q-border | color | #dce0d8 | Color for outlines and dividers. |
--q-radius | length | 10px | Base corner radius. |
--q-gap | length | calc(var(--q-space) * 2) | Space between items, based on the spacing unit. |
--q-space | length | 4px | Base unit for gaps and padding. |