Skip to content

Commit

Permalink
add property
Browse files Browse the repository at this point in the history
  • Loading branch information
bramvanhoutte committed Nov 2, 2020
1 parent 2e44f60 commit 8b3a58b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ interface Props {
maxLength?: number;
className?: string;
isInvalid?: boolean;
isDisabled?: boolean;
}

const Input = React.forwardRef<HTMLInputElement, Props>(
Expand All @@ -30,6 +31,7 @@ const Input = React.forwardRef<HTMLInputElement, Props>(
isInvalid = false,
spellCheck = false,
autoComplete = false,
isDisabled = false,
maxLength,
className,
}: Props,
Expand Down Expand Up @@ -58,6 +60,7 @@ const Input = React.forwardRef<HTMLInputElement, Props>(
className={inputClassNames}
data-testid={name && `input-${name}`}
onBlur={onBlur}
disabled={isDisabled}
/>
);
},
Expand Down

0 comments on commit 8b3a58b

Please sign in to comment.