Brief-Generator/frontend/src/components/TextAreaInput.jsx

21 lines
431 B
React
Raw Normal View History

2021-08-28 23:42:33 +02:00
import React from "react";
import "../App.css";
function TextAreaInput(props) {
return (
<label className="input-field">
<p>{props.label}</p>
<textarea
value={props.value}
name={props.name}
placeholder={props.value || "Brieftext"}
onChange={props.onChange}
rows={props.rows || 5}
cols={props.cols || 30}
/>
</label>
);
}
export default TextAreaInput;