Skip to content

Commit

Permalink
chore: Add disabled prop to TextInputControl component
Browse files Browse the repository at this point in the history
  • Loading branch information
Digital39999 committed May 27, 2024
1 parent 856f218 commit 7a75400
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/text-inputs/TextInputControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface TextInputControlPropsNoLabel {
placeholder?: string;
className?: string;
passwordToggleable?: boolean;
disabled?: boolean;
}

export interface TextInputControlProps extends TextInputControlPropsNoLabel {
Expand All @@ -35,6 +36,7 @@ export const TextInputControl = forwardRef<
placeholder,
onFocus,
passwordToggleable,
disabled,
},
ref,
) => {
Expand All @@ -58,6 +60,7 @@ export const TextInputControl = forwardRef<
onKeyDown={(e) =>
e.key === "Enter" ? (e.target as HTMLInputElement).blur() : null
}
disabled={disabled}
/>
{passwordToggleable ? (
<button
Expand Down

0 comments on commit 7a75400

Please sign in to comment.