Skip to content

Commit

Permalink
fix: add htmlinput element properties in TextInput (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitSerrano authored Jul 1, 2022
1 parent 71f9da7 commit 8a54051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/interface/TextInput/TextInput.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type TextInputType = "text" | "date" | "number" | "email" | "password";

export type TextInputClassName = string | Object | any[];

export interface TextInputProps {
export interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
textarea?: boolean;
type?: TextInputType;
label?: string;
Expand All @@ -18,7 +18,7 @@ export interface TextInputProps {
required?: boolean;
className?: TextInputClassName;
withAutoValidation?: boolean;
onBlur?: (...args: any[])=>any;
onBlur?: (...args: any[]) => any;
}

declare const TextInput: React.FC<TextInputProps>;
Expand Down

0 comments on commit 8a54051

Please sign in to comment.