Reputation: 91
How to add multiple lines. I am only getting a field for one line.
<label htmlFor="materialrequired">Material Required</label>
<input
type="text"
id="materialrequired"
name="materialrequired"
placeHolder="Material Required..."
value={materialrequired || ""}
onChange={handleInputChange}
/>
Upvotes: 1
Views: 141
Reputation: 1185
Example of creating a multi-line input field:
<textarea rows="5" cols="60" name="text" placeholder="Enter text"></textarea>
Upvotes: 2