Component libraryGauge
Gauge
ProShow a bounded measurement with an exact reading, supplied thresholds, and native meter semantics.
npx shadcn@latest add @tidal-pro/gaugeInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/gauge.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Consumer-owned value is a finite number within a finite increasing min/max range, or null for no reading. low/high/optimum are optional finite in-range values, with low<=high. Invalid configurations show an explicit error instead of silently clamping. The decorative semicircle and threshold markers accompany exact text and a native meter; null values omit the needle and meter. Domains normalize before subtraction to support extreme finite ranges. label is required; unit/description ReactNode content, exact formatValue, translated labels, figure attributes and root ref are supported. Visual numeric progression remains left-to-right in RTL. No measurement, polling, inference, threshold classification, animation loop or external effect occurs.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.