MCPcopy Create free account
hub / github.com/TypeCellOS/BlockNote / Toggle

Function Toggle

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

Source from the content-addressed store, hash-verified

27);
28
29function Toggle({
30 className,
31 variant,
32 size,
33 ...props
34}: React.ComponentProps<typeof TogglePrimitive.Root> &
35 VariantProps<typeof toggleVariants>) {
36 return (
37 <TogglePrimitive.Root
38 data-slot="toggle"
39 className={cn(toggleVariants({ variant, size, className }))}
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