Skip to content

Commit

Permalink
fix(button): include on mouse down prop
Browse files Browse the repository at this point in the history
  • Loading branch information
dserna-arbolus authored Mar 6, 2024
1 parent 0900996 commit b4e6a67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Buttons/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export interface ButtonProps {
text: string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
onClick?: (e: any) => void;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
onMouseDown?: (e: any) => void;
type?: ButtonType;
disabled?: boolean;
nativeType?: ButtonNativeType;
Expand All @@ -22,6 +24,7 @@ export const Button: React.FC<ButtonProps> = ({
text,
type = ButtonTypeEnum.PRIMARY,
onClick,
onMouseDown,
disabled = false,
nativeType = ButtonNativeTypeEnum.BUTTON,
startIcon,
Expand All @@ -32,6 +35,7 @@ export const Button: React.FC<ButtonProps> = ({
return (
<button
onClick={onClick}
onMouseDown={onMouseDown}
disabled={disabled}
type={nativeType}
className={clsx(styles[type], styles[size])}
Expand Down

0 comments on commit b4e6a67

Please sign in to comment.