Bachelorthesis_Code/frontend/src/components/InputField.js

19 lines
368 B
JavaScript
Raw Normal View History

2021-06-21 01:51:15 +00:00
import React from "react";
import "./Input.css";
2021-06-21 01:51:15 +00:00
function InputField(props) {
return (
<label className="input-field">
2021-06-21 01:51:15 +00:00
<p>{props.LabelName}</p>
2021-06-23 01:40:37 +00:00
<input
name={props.InputName}
onChange={props.onChange}
type={props.InputType}
placeholder={props.InputPlaceHolder}
/>
2021-06-21 01:51:15 +00:00
</label>
);
}
export default InputField;