Show a value on a fixed range as a half-circle arc, with thresholds, built on Base UI.
View as MarkdownInstallation
Component API
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | - | The current value. |
| The current value. | |||
min | number | - | Defaults to Base UI's own Meter minimum (0). |
| Defaults to Base UI's own Meter minimum (0). | |||
max | number | - | Defaults to Base UI's own Meter maximum (100). |
| Defaults to Base UI's own Meter maximum (100). | |||
label | string | - | Text under the value, and the gauge's accessible name. |
| Text under the value, and the gauge's accessible name. | |||
unit | string | - | Reads the value as an amount, 72 GB, in place of a percentage of the range. |
Reads the value as an amount, 72 GB, in place of a percentage of the range. | |||
description | string | - | A line under the gauge, such as 72 of 100 GB used. |
A line under the gauge, such as 72 of 100 GB used. | |||
warning | number | - | The value from which the arc turns yellow and names its level. |
| The value from which the arc turns yellow and names its level. | |||
danger | number | - | The value from which the arc turns red and names its level. |
| The value from which the arc turns red and names its level. | |||
levels | GaugeLevels | - | |
intent | neutral | info | success | warning | danger | neutral | |
size | sm | md | lg | md | Width of the gauge, with the type scaled to match. |
| Width of the gauge, with the type scaled to match. | |||
animated | boolean | true | |
className | string | - | |