20 lines
430 B
JavaScript
20 lines
430 B
JavaScript
import React from "react";
|
|
import "./Input.css";
|
|
|
|
function InputField(props) {
|
|
return (
|
|
<label className="input-field">
|
|
<p>{props.LabelName}</p>
|
|
<input
|
|
name={props.InputName}
|
|
onChange={props.onChange}
|
|
type={props.InputType}
|
|
placeholder={props.InputPlaceHolder}
|
|
onCopy={props.onCopy}
|
|
onPaste={props.onPaste}
|
|
/>
|
|
</label>
|
|
);
|
|
}
|
|
|
|
export default InputField;
|