This commit is contained in:
2024-08-19 20:22:59 +05:00
parent f05047910b
commit b67d789e88
19 changed files with 628 additions and 58 deletions
+5 -1
View File
@@ -5,6 +5,7 @@ interface Props {
icon?: JSX.Element;
onlyIcon?: boolean;
children?: React.ReactNode;
className?: string;
onClick?: () => void;
}
@@ -26,13 +27,16 @@ function Button2({
icon,
onlyIcon = false,
children,
className,
onClick,
}: Props) {
return (
<button
className={`flex items-center transition-colors w-fit ${
variantClasses[variant]
} ${sizeClasses[size]} ${roundedFull ? "rounded-full" : "rounded-lg"} `}
} ${sizeClasses[size]} ${
roundedFull ? "rounded-full" : "rounded-lg"
} ${className}`}
onClick={onClick}
>
{onlyIcon ? (