diff --git a/src/Components/FormField.jsx b/src/Components/FormField.jsx index 7005683..e11e1f3 100644 --- a/src/Components/FormField.jsx +++ b/src/Components/FormField.jsx @@ -1,97 +1,219 @@ -import { FormControl, FormLabel, Input, Textarea, Select, Checkbox, RadioGroup, Radio, Stack } from '@chakra-ui/react'; -import React from 'react'; +import { FormControl, FormLabel, Input, Textarea, Select, Checkbox, RadioGroup, Radio, Stack, Box, Heading, FormHelperText, Kbd } from '@chakra-ui/react'; import { Controller } from 'react-hook-form'; import { TiWarning } from 'react-icons/ti'; +import { motion } from 'framer-motion'; const FormField = ({ - label, - control, - name, - type = "text", - options = [], - errors, - isRequired, - arabic, - ...props - }) => ( - - {label} - { - switch (type) { - case 'textarea': - return ( -