Skip to content
Eskais UI

Feedback

Meter

UI SDK Meter: a reading within a known range, like storage used, as a bar or a ring gauge.

Example

Storage used68%
Build minutes used92%
40%
Seats
68%
Storage

Installation

npx shadcn@latest add @eskais/meter
Brings alongtoneprogress
npm packagesclass-variance-authority@0.7.1

Usage

Import
import { Meter, MeterIndicator, MeterLabel, MeterRing, MeterTrack, MeterValue } from "@/components/ui/meter"

API reference

Meter

Takes ComponentProps<typeof MeterPrimitive> &.

MeterValue

Takes every prop of UI SDK MeterValue, GaugeValueFormatProps.

MeterRing

PropTypeDefault
size"sm" | "md" | "lg""md"
childrenReplaces the value in the centre.ReactNode–

Also takes every prop of UI SDK MeterTrack except children.

Other exports

type MeterPropstype MeterRingPropstype MeterRingSizetype MeterVarianttype MeterState

Accessibility

  • A meter for a reading in a known range, like storage used; tone colours the indicator.
  • variant="ring" keeps role="meter" and its value; the ring itself is hidden from screen readers and still under reduced motion.

Agent actions

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.