Skip to main content
Clever Ops

Performance Gauge Cluster

An instrument-cluster stats row for React, 240-degree dial arcs sweep once to data-true values, preformatted kW, Nm and 0-100 figures in Tailwind mono, one featured dial accent.

Preview & code

Loading Performance Gauge Cluster preview

Installation

pnpm dlx shadcn@latest add @cleverui/performance-gauge-cluster

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { PerformanceGaugeCluster } from '@/components/ui/performance-gauge-cluster'
Exampletsx
'use client'

import { PerformanceGaugeCluster } from '@/components/ui/performance-gauge-cluster'

export default function PerformanceGaugeClusterDemo() {
  return (
    <div className="mx-auto max-w-4xl px-4 py-10 sm:px-6 sm:py-14">
      <PerformanceGaugeCluster
        heading="Performance"
        vehicle="Ranger Raptor 3.0L V6 twin-turbo"
        featured={0}
        gauges={[
          {
            label: 'Power',
            value: 292,
            max: 350,
            display: '292',
            unit: 'kW',
            caption: '@ 5,650 rpm',
          },
          {
            label: 'Torque',
            value: 583,
            max: 700,
            display: '583',
            unit: 'Nm',
            caption: '@ 3,500 rpm',
          },
          {
            label: '0–100',
            value: 5.7,
            max: 10,
            display: '5.7',
            unit: 's',
            caption: 'Manufacturer claim',
          },
          {
            label: 'Towing',
            value: 2500,
            max: 3500,
            display: '2,500',
            unit: 'kg',
            caption: 'Braked, 4×4',
          },
        ]}
        footnote="Manufacturer figures, 98 RON premium unleaded. Towing capacity with genuine tow package fitted."
      />
    </div>
  )
}

API reference

PerformanceGaugeCluster accepts the following props.

PropTypeDefaultDescription
headingstring'Performance'
vehiclestringcontext line under the heading, e.g. 'Ranger Raptor 3.0L V6 twin-turbo'
gauges*PerformanceGauge[]3–4 dials
featurednumber0index of the one dial whose arc and numeral take the accent
footnotestringquiet source line under the row

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Referenced types

Typestsx
export interface PerformanceGauge {
  label: string
  /** data-true value driving the arc sweep */
  value: number
  /** mechanical max the arc is drawn against */
  max: number
  /** PREFORMATTED center figure, e.g. '292' */
  display: string
  /** unit like 'kW' */
  unit?: string
  /** caption like '@ 5,650 rpm' */
  caption?: string
}

Frequently asked questions

How do I install the Performance Gauge Cluster component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/performance-gauge-cluster`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Performance Gauge Cluster require?

Performance Gauge Cluster uses motion on top of React and Tailwind CSS. You don't need to install it manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Performance Gauge Cluster to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services