fix(ui): merge Toggle className with cn() outside toggleVariants

CVA should not receive className; merge with toggleVariants() output.

Made-with: Cursor
This commit is contained in:
Douglas 2026-04-23 10:52:24 +01:00
parent 9c4766cece
commit e20284be49

View file

@ -49,7 +49,7 @@ const Toggle = React.forwardRef<
>(({ className, variant, size, ...props }, ref) => (
<TogglePrimitive.Root
ref={ref}
className={cn(toggleVariants({ variant, size, className }))}
className={cn(toggleVariants({ variant, size }), className)}
{...props}
/>
));