summaryrefslogtreecommitdiff
path: root/src/components/Input/Input.jsx
diff options
context:
space:
mode:
authorrohan09-raj <[email protected]>2022-07-28 17:51:44 +0530
committerrohan09-raj <[email protected]>2022-07-28 17:51:44 +0530
commitffefbc1c2a382597c6d9f90977f8c907e26fbe2e (patch)
tree1ebc8d426c9e561430ce6fcebebb118def4208c2 /src/components/Input/Input.jsx
parentff73539048908d8a24e347f2f9699cff95d8200c (diff)
Added components and some refactoring
Diffstat (limited to 'src/components/Input/Input.jsx')
-rw-r--r--src/components/Input/Input.jsx22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/components/Input/Input.jsx b/src/components/Input/Input.jsx
new file mode 100644
index 0000000..ee79f3b
--- /dev/null
+++ b/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