Function
Toggle
({
className,
variant,
size,
...props
}: React.ComponentProps<typeof TogglePrimitive.Root> &
VariantProps<typeof toggleVariants>)
Source from the content-addressed store, hash-verified
| 29 | ) |
| 30 | |
| 31 | function 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 | |
| 47 | export { Toggle, toggleVariants } |
Callers
nothing calls this directly
Tested by
no test coverage detected