MCPcopy Create free account
hub / github.com/AntiHub-Project/AntiHub / Toggle

Function Toggle

components/ui/toggle.tsx:31–45  ·  view source on GitHub ↗
({
  className,
  variant,
  size,
  ...props
}: React.ComponentProps<typeof TogglePrimitive.Root> &
  VariantProps<typeof toggleVariants>)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected