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; errorMessage?: string;
value: string; value: string;
label?: string; label?: string;
name: string;
placeholder?: string; placeholder?: string;
fullWidth?: boolean; fullWidth?: boolean;
onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void; onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
@@ -25,6 +26,7 @@ type TextAreaProps = {
const TextArea = ({ const TextArea = ({
color = 'client', color = 'client',
label, label,
name,
placeholder, placeholder,
value, value,
onChange, onChange,
@@ -50,6 +52,7 @@ const TextArea = ({
<textarea <textarea
rows={10} rows={10}
value={value} value={value}
name={name}
onChange={onChange} onChange={onChange}
placeholder={placeholder} placeholder={placeholder}
/> />