This component no longer exists. It was in ondo-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-09 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
meter
ondo-ui/meterRemovedComponent
A linear reading of a bounded value, such as a score, a utilization, or a fill level.
Install it
npx shadcn@latest add https://ui.ondo.dou.so/r/meter.jsonSource
1"use client"23import { Meter as MeterPrimitive } from "@base-ui/react/meter"4import { cva, type VariantProps } from "class-variance-authority"56import { cn } from "@/lib/utils"78const meterVariants = cva("group/meter flex flex-wrap gap-3", {9 variants: {10 variant: {11 default: "text-primary",12 info: "text-info",13 success: "text-success",14 warning: "text-warning",15 destructive: "text-destructive",16 },17 },18 defaultVariants: {19 variant: "default",20 },21})2223function Meter({24 className,25 variant = "default",26 children,27 value,28 ...props29}: MeterPrimitive.Root.Props & VariantProps<typeof meterVariants>) {30 return (31 <MeterPrimitive.Root32 value={value}33 data-slot="meter"34 data-variant={variant}35 className={cn(meterVariants({ variant, className }))}36 {...props}37 >38 {children}39 <MeterTrack>40 <MeterIndicator />41 </MeterTrack>42 </MeterPrimitive.Root>43 )44}4546function MeterTrack({ className, ...props }: MeterPrimitive.Track.Props) {47 return (48 <MeterPrimitive.Track49 data-slot="meter-track"50 className={cn(51 "relative flex h-1.5 w-full items-center overflow-x-hidden rounded-full bg-muted",52 className53 )}54 {...props}55 />56 )57}5859function MeterIndicator({60 className,61 ...props62}: MeterPrimitive.Indicator.Props) {63 return (64 <MeterPrimitive.Indicator65 data-slot="meter-indicator"66 className={cn("h-full bg-current transition-all", className)}67 {...props}68 />69 )70}7172function MeterLabel({ className, ...props }: MeterPrimitive.Label.Props) {73 return (74 <MeterPrimitive.Label75 data-slot="meter-label"76 className={cn("text-sm font-medium text-foreground", className)}77 {...props}78 />79 )80}8182function MeterValue({ className, ...props }: MeterPrimitive.Value.Props) {83 return (84 <MeterPrimitive.Value85 data-slot="meter-value"86 className={cn(87 "ml-auto text-sm text-muted-foreground tabular-nums",88 className89 )}90 {...props}91 />92 )93}9495export {96 Meter,97 MeterTrack,98 MeterIndicator,99 MeterLabel,100 MeterValue,101 meterVariants,102}
What it pulls in
npm packages
Other registry items
