diff options
Diffstat (limited to 'client/src/components/Input/Input.jsx')
-rw-r--r-- | client/src/components/Input/Input.jsx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/client/src/components/Input/Input.jsx b/client/src/components/Input/Input.jsx new file mode 100644 index 0000000..ee79f3b --- /dev/null +++ b/client/src/components/Input/Input.jsx @@ -0,0 +1,22 @@ +import React from 'react' +import styles from './Input.module.css' + +const Input = ({ label, id, value, type, name }) => { + return ( + <div className={styles.input}> + <div className={styles.input__container}> + <label htmlFor={id}>{label}</label> + <input + className={styles.input__field} + type={type} + id={id} + name={name} + value={value} + required + /> + </div> + </div> + ) +} + +export default Input |