summaryrefslogtreecommitdiff
path: root/client/src/components/Input/Input.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/components/Input/Input.jsx')
-rw-r--r--client/src/components/Input/Input.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/components/Input/Input.jsx b/client/src/components/Input/Input.jsx
index ee79f3b..5987e27 100644
--- a/client/src/components/Input/Input.jsx
+++ b/client/src/components/Input/Input.jsx
@@ -1,7 +1,7 @@
import React from 'react'
import styles from './Input.module.css'
-const Input = ({ label, id, value, type, name }) => {
+const Input = ({ label, id, value, type, name, onChange, placeholder }) => {
return (
<div className={styles.input}>
<div className={styles.input__container}>
@@ -12,7 +12,9 @@ const Input = ({ label, id, value, type, name }) => {
id={id}
name={name}
value={value}
+ onChange={onChange}
required
+ placeholder={placeholder}
/>
</div>
</div>