Skip to main content

Gauge

Show a value on a fixed range as a half-circle arc, with thresholds, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
valuenumber-The current value.
The current value.
minnumber-Defaults to Base UI's own Meter minimum (0).
Defaults to Base UI's own Meter minimum (0).
maxnumber-Defaults to Base UI's own Meter maximum (100).
Defaults to Base UI's own Meter maximum (100).
labelstring-Text under the value, and the gauge's accessible name.
Text under the value, and the gauge's accessible name.
unitstring-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.
descriptionstring-A line under the gauge, such as 72 of 100 GB used.
A line under the gauge, such as 72 of 100 GB used.
warningnumber-The value from which the arc turns yellow and names its level.
The value from which the arc turns yellow and names its level.
dangernumber-The value from which the arc turns red and names its level.
The value from which the arc turns red and names its level.
levelsGaugeLevels-
intentneutral | info | success | warning | dangerneutral
sizesm | md | lgmdWidth of the gauge, with the type scaled to match.
Width of the gauge, with the type scaled to match.
animatedbooleantrue
classNamestring-