Function
Meter
({ className, children, ...props }: MeterPrimitive.Root.Props)
Source from the content-addressed store, hash-verified
| 5 | import { cn } from "@/lib/utils"; |
| 6 | |
| 7 | function Meter({ className, children, ...props }: MeterPrimitive.Root.Props) { |
| 8 | return ( |
| 9 | <MeterPrimitive.Root |
| 10 | className={cn("flex w-full flex-col gap-2", className)} |
| 11 | {...props} |
| 12 | > |
| 13 | {children ? ( |
| 14 | children |
| 15 | ) : ( |
| 16 | <MeterTrack> |
| 17 | <MeterIndicator /> |
| 18 | </MeterTrack> |
| 19 | )} |
| 20 | </MeterPrimitive.Root> |
| 21 | ); |
| 22 | } |
| 23 | |
| 24 | function MeterLabel({ className, ...props }: MeterPrimitive.Label.Props) { |
| 25 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected