MCPcopy Create free account
hub / github.com/bytebase/dbhub / Meter

Function Meter

frontend/src/components/ui/meter.tsx:7–22  ·  view source on GitHub ↗
({ className, children, ...props }: MeterPrimitive.Root.Props)

Source from the content-addressed store, hash-verified

5import { cn } from "@/lib/utils";
6
7function 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
24function MeterLabel({ className, ...props }: MeterPrimitive.Label.Props) {
25 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected