Update textarea props

This commit is contained in:
Hazem Krimi
2021-04-28 21:31:46 +01:00
parent f76403cbb0
commit 4467dda3de
+3
View File
@@ -21,6 +21,7 @@ type TextAreaProps = {
placeholder?: string; placeholder?: string;
fullWidth?: boolean; fullWidth?: boolean;
onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void; onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
onBlur?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
}; };
const TextArea = ({ const TextArea = ({
@@ -30,6 +31,7 @@ const TextArea = ({
placeholder, placeholder,
value, value,
onChange, onChange,
onBlur,
error, error,
errorMessage, errorMessage,
...props ...props
@@ -55,6 +57,7 @@ const TextArea = ({
value={value} value={value}
name={name} name={name}
onChange={onChange} onChange={onChange}
onBlur={onBlur}
placeholder={placeholder} placeholder={placeholder}
/> />
</div> </div>