MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / Toggle

Function Toggle

packages/react/src/components/toggle.tsx:31–44  ·  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> & VariantProps<typeof toggleVariants>) {
37 return (
38 <TogglePrimitive.Root
39 data-slot="toggle"
40 className={cn(toggleVariants({ variant, size, className }))}
41 {...props}
42 />
43 );
44}
45
46export { Toggle, toggleVariants };

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected