Skip to content

DataLumen Halo

GaugeFreev1.0.0

A value in a known range, read as a dial of hairline ticks: ticks light to the value in the tone of its band, a longer tick marks where each band begins, and the band's word sits under the number.

Built on shadcn/ui

.md
Base UIpnpm dlx shadcn@latest add https://beautiful-ui.dev/r/lumen-gauge.json
Radixpnpm dlx shadcn@latest add https://beautiful-ui.dev/r/radix-nova/lumen-gauge.json

Free, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @beautiful-ui registry added, @beautiful-ui/<name> picks for you.

Install by hand
  1. 1. No extra packages: React and Tailwind CSS v4 are enough.
  2. 2. Copy the files to these paths (Source below, or save them all as a .zip)
    • components/ui/lumen/controls/gauge.tsx
  3. 3. Paste styles.css into your global CSS, after @import "tailwindcss";
  4. 4. Install what it builds on first: shadcn's cn helper (lib/utils.ts, from npx shadcn init), the theme foundation (its tokens and base styles)
Styles didn't apply?

The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.

Set up the Beautiful UI registry

Free pieces install from their URL with no setup (that URL gives the Base UI build; Radix projects use /r/radix-nova/<name>.json, or add the registries below and the CLI picks your build). Pro pieces need the registries below and BEAUTIFUL_UI_TOKEN in .env.local.

components.json
{
  "registries": {
    "@beautiful-ui": "https://beautiful-ui.dev/r/{style}/{name}.json",
    "@beautiful-ui-pro": {
      "url": "https://beautiful-ui.dev/r/pro/{style}/{name}.json",
      "headers": { "Authorization": "Bearer ${BEAUTIFUL_UI_TOKEN}" }
    }
  }
}

MCP server

claude mcp add --transport http beautiful-ui https://beautiful-ui.dev/api/mcp
Catalog for agents: /llms.txt
Thresholds

Usage

Import it and pass your content. The props that matter most are listed next.

Example
"use client";

import { Gauge } from "@/components/ui/lumen/controls/gauge";

export function CpuGauge({ cpu }: { cpu: number }) {
  return (
    <Gauge
      label="CPU"
      value={cpu}
      unit="%"
      thresholds={[
        { at: 0, tone: "good", label: "Healthy" },
        { at: 65, tone: "warn", label: "Busy" },
        { at: 85, tone: "bad", label: "Saturated" },
      ]}
    />
  );
}

Props

  • value–

    number

    The reading. The dial clamps it to min–max; the number shows it as given.

  • min / max0 / 100

    number

    The range.

  • label–

    string

    What is measured: the accessible name, and the caption when no band has a word.

  • thresholds[]

    { at, tone: "neutral" | "good" | "warn" | "bad", label? }[]

    Where bands begin. Below the first, the dial is neutral ink.

  • unit–

    string

    After the number, e.g. "%" or "ms".

  • format / locale–

    (v) => string / string

    Formats the number. Default: the locale's number, up to one decimal.

Show all 8 props
  • caption–

    ReactNode

    Replaces the word under the number.

  • ticks / size41 / 176

    number

    How many ticks, and the width in px.

Source

components/ui/lumen/controls/gauge.tsx