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