Mohammad Shehadeh

Gauge

Dashboards

About

Radial SVG gauge for a single reading on a scale, with threshold bands that recolour the arc, an animated sweep and a centred value and caption. Any start and end angle, from a half circle to a full ring.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Gauge to your project and fits it to your theme.

Code

How Gauge is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import {
  Gauge,
  GaugeTrack,
  GaugeBands,
  GaugeIndicator,
  GaugeValue,
  GaugeLabel,
} from "@/components/ui/gauge";

export default function GaugeDemo() {
  return (
    <div className="flex w-full items-center justify-center p-10">
      <Gauge
        value={71}
        size="lg"
        tone="success"
        thresholds={[
          { value: 0, tone: "success", label: "Normal" },
          { value: 70, tone: "warning", label: "High" },
          { value: 90, tone: "destructive", label: "Critical" },
        ]}
      >
        <GaugeTrack />
        <GaugeBands />
        <GaugeIndicator />
        <GaugeValue format={(v) => `${v}%`} />
        <GaugeLabel>CPU load</GaugeLabel>
      </Gauge>
    </div>
  );
}

More by Mohammad Shehadeh

View all
  • Ecommerce Category Page

    Ecommerce Category Page

    117
  • Feature Problem Cards

    Feature Problem Cards

    106
  • Split Login

    Split Login

    103
  • Feature Grid Spotlight Cards

    Feature Grid Spotlight Cards

    101
  • Rounded Top Footer

    Rounded Top Footer

    93
  • Comparison Section

    Comparison Section

    86
  • FAQ Two Column

    FAQ Two Column

    85
  • Comparison Table

    Comparison Table

    82

More in Dashboards

View all
  • Creator Dashboard

    Creator Dashboard

    94
  • serf dashboard

    serf dashboard

    84
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Glass Dashboard

    Glass Dashboard

    1.1K
  • Adjustable Glass Dashboard

    Adjustable Glass Dashboard

    1.2K
  • App Dashboard Layout

    App Dashboard Layout

    572
  • Sidebar

    Sidebar

    422
  • Dashboard Shell

    Dashboard Shell

    215

Explore more

Part of Hirael — browse the full library on 21st.dev.