fix(button): fix for className (#4604)

This commit is contained in:
Ceciliadrc 2025-02-19 15:16:22 +01:00 committed by GitHub
parent ce3bc8962d
commit 125f11fc73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
const Comp = asChild ? Slot : 'button';
return (
<Comp
className={cn(buttonVariants({ variant, size, className }))}
className={cn(buttonVariants({ variant, size }), className)}
ref={forwardRef}
{...props}
/>