Function
Toggle
({
className,
variant,
size,
...props
}: TogglePrimitive.Props & VariantProps<typeof toggleVariants>)
Source from the content-addressed store, hash-verified
| 28 | ); |
| 29 | |
| 30 | function Toggle({ |
| 31 | className, |
| 32 | variant, |
| 33 | size, |
| 34 | ...props |
| 35 | }: TogglePrimitive.Props & VariantProps<typeof toggleVariants>) { |
| 36 | return ( |
| 37 | <TogglePrimitive |
| 38 | className={cn(toggleVariants({ className, size, variant }))} |
| 39 | data-slot="toggle" |
| 40 | {...props} |
| 41 | /> |
| 42 | ); |
| 43 | } |
| 44 | |
| 45 | export { Toggle, toggleVariants }; |
Callers
nothing calls this directly
Tested by
no test coverage detected