Search for a command to run...
Used to render single-value indicators — capacity, utilization, scores, percentages — in dashboards and AI-generated status responses where the value's position within a min/max range matters.
gauge (default radial track), text (single big number), stacked (two-value comparison)%, ms, etc.npx shadcn@latest add https://ui.heygaia.io/r/gauge-chart.jsonimport { GaugeChart } from "@/components/ui/gauge-chart";
export default function Example() {
return (
<GaugeChart
value={68}
title="Memory"
unit="%"
thresholds={{ warning: 60, danger: 80 }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | - | Primary value to render |
| title | string | - | Label below the value |
| min | number | 0 | Lower bound of the range |
| max | number | 100 | Upper bound of the range |
| unit | string | - | Optional unit suffix (e.g. "%") |
| thresholds | { warning: number; danger: number } | { warning: 60, danger: 80 } | Percentage thresholds for color switching |
| variant | "gauge" | "text" | "stacked" | "gauge" | Visual style |
| secondValue | number | - | Secondary value (stacked variant only) |
| secondLabel | string | - | Secondary label (stacked variant only) |