summaryrefslogtreecommitdiff
path: root/client/src/components/LabelCard/LabelCard.jsx
diff options
context:
space:
mode:
authorrohan09-raj <[email protected]>2022-07-28 17:56:15 +0530
committerrohan09-raj <[email protected]>2022-07-28 17:56:15 +0530
commit49be4dfc3d478ad02876c9238c48c513edac1e7c (patch)
treeb79c0bd1c2cb1582df0d03e88e4d03d097e9f0a0 /client/src/components/LabelCard/LabelCard.jsx
parentffefbc1c2a382597c6d9f90977f8c907e26fbe2e (diff)
refactoring folder structure
Diffstat (limited to 'client/src/components/LabelCard/LabelCard.jsx')
-rw-r--r--client/src/components/LabelCard/LabelCard.jsx23
1 files changed, 23 insertions, 0 deletions
diff --git a/client/src/components/LabelCard/LabelCard.jsx b/client/src/components/LabelCard/LabelCard.jsx
new file mode 100644
index 0000000..be02f01
--- /dev/null
+++ b/client/src/components/LabelCard/LabelCard.jsx
@@ -0,0 +1,23 @@
+import React from 'react'
+import styles from './LabelCard.module.css'
+
+const LabelCard = ({ id, name, value, title, image }) => {
+ return (
+ <div className={styles.labelcard}>
+ <label htmlFor={id} className={styles.card}>
+ <img className={styles.card__image} src={image} alt="" />
+ <h4 className={styles.card__title}>{title}</h4>
+ </label>
+ <input
+ className={styles.labelcard__radio}
+ type="radio"
+ id={id}
+ name={name}
+ value={value}
+ required
+ />
+ </div>
+ )
+}
+
+export default LabelCard