TidalUI

Gauge preview

Show a bounded measurement with an exact reading, supplied thresholds, and native meter semantics.

pro · Data · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/gauge

Import components/ui/tidal.css, components/ui/gauge.css. Wrap installed components in tidal-scope.

Preview

Gauge component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/gauge.css";
import{TidalGauge}from"./components/ui/gauge";
export default()=><div className="tidal-scope"><TidalGauge label={"Demo"} value={1}/></div>;

API and props

TidalGauge.label (required)
string

Required label value accepted by this exported component.

TidalGauge.value (required)
number | null

Required value value accepted by this exported component.

TidalGauge.description
ReactNode

Optional description value accepted by this exported component.

TidalGauge.formatValue
((value: number) => string) | undefined

Optional format value value accepted by this exported component.

TidalGauge.high
number | undefined

Optional high value accepted by this exported component.

TidalGauge.labels
Partial<{ unavailable: string; invalid: string; minimum: string; maximum: string; low: string; high: string; optimum: string; }> | undefined

Optional labels value accepted by this exported component.

TidalGauge.low
number | undefined

Optional low value accepted by this exported component.

TidalGauge.max
number | undefined

Optional max value accepted by this exported component.

TidalGauge.min
number | undefined

Optional min value accepted by this exported component.

TidalGauge.optimum
number | undefined

Optional optimum value accepted by this exported component.

TidalGauge.unit
ReactNode

Optional unit value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas