Component libraryMeter

Meter

Pro

Show quotas, scores and other values against a known range.

npx shadcn@latest add @tidal-pro/meter
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/meter

Import components/ui/tidal.css, components/ui/meter.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

Required label, numeric value, and visible exact valueText. Optional min(default0), max(default100), low, high, optimum, description, minLabel/maxLabel, showScale(defaulttrue), rootClassName/rootProps, native meter attributes/className/style and forwarded ref. Nonfinite min falls back0. A nonfinite max or any max that does not exceed min resets the complete range to0–100 so even extreme finite inputs remain valid. Nonfinite value falls back min and value clamps into range. Supplied thresholds clamp into range, and inverted finite low/high are sorted so the native meter remains valid. Nonfinite thresholds use their documented boundary fallback. valueText and description are linked through aria-describedby; numeric ReactNode content is preserved. Boundary labels are visual/decorative because native min/max remain the semantic source. This is a read-only measurement, not task progress and not a form input. Consumers own units, exact display text, thresholds, requests, storage and updates.

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.

Building with an agent?Give it the installation guide and component catalog.