This commit is contained in:
parent
46e76acad3
commit
a1d3add884
@ -5,6 +5,7 @@ interface ButtonProps {
|
||||
className?: string;
|
||||
hasAnimation?: boolean;
|
||||
disableCursor?: boolean;
|
||||
disabled?: boolean;
|
||||
onClick?: () => void;
|
||||
href?: string;
|
||||
type?: 'button' | 'submit' | 'reset';
|
||||
@ -15,6 +16,7 @@ const Button: React.FC<ButtonProps> = ({
|
||||
className = "",
|
||||
hasAnimation = true,
|
||||
disableCursor = false,
|
||||
disabled = false,
|
||||
onClick,
|
||||
href,
|
||||
type = 'button'
|
||||
@ -35,7 +37,7 @@ const Button: React.FC<ButtonProps> = ({
|
||||
duration-200
|
||||
hover:bg-gray-700/40
|
||||
text-white
|
||||
transition-colors
|
||||
transition-colors
|
||||
${animationClasses} ${cursorClasses} ${className}`;
|
||||
|
||||
if (href) {
|
||||
@ -54,6 +56,7 @@ const Button: React.FC<ButtonProps> = ({
|
||||
type={type}
|
||||
onClick={onClick}
|
||||
className={baseClasses}
|
||||
disabled={disabled}
|
||||
>
|
||||
{children}
|
||||
</button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user