Black Friday: 30% off Pro

Get 30% off

Updated

Gauge

Pro

Preview

Customize

Value64
Gigabytes
Accent

Installation

Pro

Gauge is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/gauge

Usage

import { Gauge } from "@/components/uibrik/gauge/gauge";​const format = { style: "unit", unit: "gigabyte", maximumFractionDigits: 0 };​<Gauge  title="Storage"  value={64}  format={format}  accent=""  min={0}  max={100}  caption="of $100 budget"  // labels={…}/>

Where to use Gauge

  • Health and score metrics

    One value against its range, coloured by zone, makes credit or health scores easy to read.

    Pairs with KPI Tile

  • Quota and usage

    Telling users how far they are from the next zone helps them act before hitting a limit.

    Pairs with Progress

  • Server capacity

    A calm meter suits load and capacity panels on status pages.

    Pairs with Status Dashboard

Props

Gauge
title
Type string
"Storage"
Names the metric.
value
Type number
64
Current reading.
format
Type Intl.NumberFormatOptions
gigabytes
Formats every number, e.g. { style: "percent" }.
accent
Type string
""
Arc colour without zones. Empty uses the chart palette.
min
Type number
0
Start of the range.
max
Type number
100
End of the range.
thresholds
Type { at: number; status: "good" | "warning" | "critical" }[]
warning 70, critical 90
Where each zone begins. Below the first is good. Empty uses one colour.
labels
Type Partial<Record<"good" | "warning" | "critical", string>>
–
Words for each zone, shown beside its dot.
caption
Type string
"of 100 GB plan"
Note under the gauge.
className
Type string
–
Classes for the outer shell.