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

Function Toggle

frontend/src/components/ui/toggle.tsx:30–43  ·  view source on GitHub ↗
({
  className,
  variant,
  size,
  ...props
}: TogglePrimitive.Props & VariantProps<typeof toggleVariants>)

Source from the content-addressed store, hash-verified

28);
29
30function Toggle({
31 className,
32 variant,
33 size,
34 ...props
35}: TogglePrimitive.Props & VariantProps<typeof toggleVariants>) {
36 return (
37 <TogglePrimitive
38 className={cn(toggleVariants({ className, size, variant }))}
39 data-slot="toggle"
40 {...props}
41 />
42 );
43}
44
45export { Toggle, toggleVariants };

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected