Migrate to Next
This commit is contained in:
16
components/InputField.js
Normal file
16
components/InputField.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import React from "react";
|
||||
import styles from "./InputField.module.css";
|
||||
|
||||
export default function InputField({ id, name, value, onChange, textArea }) {
|
||||
const El = textArea ? "textarea" : "input";
|
||||
return (
|
||||
<El
|
||||
className={styles.block}
|
||||
type="text"
|
||||
id={id}
|
||||
name={name}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user