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
  • Feature Problem Cards

    Feature Problem Cards

    90
  • Feature Grid Spotlight Cards

    Feature Grid Spotlight Cards

    73
  • Ecommerce Category Page

    Ecommerce Category Page

    72
  • Split Login

    Split Login

    68
  • Comparison Section

    Comparison Section

    65
  • Dithered Shader CTA

    Dithered Shader CTA

    64
  • Comparison Table

    Comparison Table

    64
  • FAQ Two Column

    FAQ Two Column

    63

More in Dashboards

View all
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.5K
  • Sidebar

    Sidebar

    286
  • SaaS Template

    SaaS Template

    2.5K
  • Course Design Cards

    Course Design Cards

    1.1K
  • Chat template

    Chat template

    614
  • System Status Block

    System Status Block

    316
  • Statistics Card 7

    Statistics Card 7

    301
  • Bar Chart

    Bar Chart

    1

Explore more

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