Added the placeholder attribute to the TextArea.jsx

This commit is contained in:
Mathias Wagner 2023-05-31 01:34:53 +02:00
parent 79112b3558
commit d92c4e8f69
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -1,5 +1,5 @@
import "./styles.sass";
export const TextArea = ({value, onChange, readOnly = false}) => (
<textarea className="area" rows="10" value={value} onChange={onChange} readOnly={readOnly} />
export const TextArea = ({value, onChange, readOnly = false, placeholder}) => (
<textarea className="area" rows="10" value={value} onChange={onChange} readOnly={readOnly} placeholder={placeholder} />
)