This commit is contained in:
@@ -5,6 +5,7 @@ interface ButtonProps {
|
|||||||
className?: string;
|
className?: string;
|
||||||
hasAnimation?: boolean;
|
hasAnimation?: boolean;
|
||||||
disableCursor?: boolean;
|
disableCursor?: boolean;
|
||||||
|
disabled?: boolean;
|
||||||
onClick?: () => void;
|
onClick?: () => void;
|
||||||
href?: string;
|
href?: string;
|
||||||
type?: 'button' | 'submit' | 'reset';
|
type?: 'button' | 'submit' | 'reset';
|
||||||
@@ -15,6 +16,7 @@ const Button: React.FC<ButtonProps> = ({
|
|||||||
className = "",
|
className = "",
|
||||||
hasAnimation = true,
|
hasAnimation = true,
|
||||||
disableCursor = false,
|
disableCursor = false,
|
||||||
|
disabled = false,
|
||||||
onClick,
|
onClick,
|
||||||
href,
|
href,
|
||||||
type = 'button'
|
type = 'button'
|
||||||
@@ -54,6 +56,7 @@ const Button: React.FC<ButtonProps> = ({
|
|||||||
type={type}
|
type={type}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
className={baseClasses}
|
className={baseClasses}
|
||||||
|
disabled={disabled}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</button>
|
</button>
|
||||||
|
Reference in New Issue
Block a user