Update text area props

This commit is contained in:
Hazem Krimi
2021-04-22 00:00:35 +01:00
parent 82669be2f2
commit 36d82902c0
+3
View File
@@ -17,6 +17,7 @@ type TextAreaProps = {
errorMessage?: string;
value: string;
label?: string;
name: string;
placeholder?: string;
fullWidth?: boolean;
onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
@@ -25,6 +26,7 @@ type TextAreaProps = {
const TextArea = ({
color = 'client',
label,
name,
placeholder,
value,
onChange,
@@ -50,6 +52,7 @@ const TextArea = ({
<textarea
rows={10}
value={value}
name={name}
onChange={onChange}
placeholder={placeholder}
/>