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%
Seats68%
Storagemeter-demo.tsxCopy code
Installation
Copy code
Usage
ImportCopy code
API reference
Meter
Takes ComponentProps<typeof MeterPrimitive> &.
MeterLabel
MeterValue
Takes every prop of UI SDK MeterValue, GaugeValueFormatProps.
MeterTrack
MeterIndicator
MeterRing
| Prop | Type | Default |
|---|---|---|
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 MeterStateAccessibility
- 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.