From 20e97c3992228bef1c9c45eff2edd69fa8a3249d Mon Sep 17 00:00:00 2001 From: npcdazai Date: Thu, 26 Sep 2024 12:37:51 +0530 Subject: [PATCH] Form options --- src/components/Form.jsx | 768 +++++++++++++++++++++++++--------------- 1 file changed, 490 insertions(+), 278 deletions(-) diff --git a/src/components/Form.jsx b/src/components/Form.jsx index 2488a43..93eb8ba 100644 --- a/src/components/Form.jsx +++ b/src/components/Form.jsx @@ -158,271 +158,481 @@ const Form = () => { w={"100%"} > {/*
*/} - + - - {[ - { label: "Enter your name", type: "text", name: "name" }, - { - label: "Enter your email address", - type: "email", - name: "email", - }, - { - label: "Enter your contact number", - type: "number", - name: "contactnumber", - }, - ].map((field, index) => ( - - {field.label} - - {errors[field.name] && ( - - {errors[field.name].message} - - )} - - ))} - {[ - { - label: "Select your country", - options: ["Country 1", "Country 2", "Country 3"], - name: "country", - }, - { - label: "Select your services", - options: ["Service 1", "Service 2", "Service 3"], - name: "services", - }, - { - label: "Where did you hear about us? *", - options: ["Source 1", "Source 2", "Source 3"], - name: "aboutus", - }, - ].map((selectField, index) => ( - - {selectField.label} - - {errors[selectField.name] && ( - - {errors[selectField.name].message} - - )} - - ))} - - - - - Tell us about your project and business challenge. - -