import React, { useState } from 'react'; import InputField from './components/FormElements/Input/InputField'; import Select from '../src/components/FormElements/Select/select'; import Radio from '../src/components/FormElements/Radio/Radio'; import DatePicker from '../src/components/FormElements/DatePicker/DatePicker'; import FileUploader from '../src/components/FormElements/File/File'; import Password from '../src/components/FormElements/Password/Password'; import Tooltip from '../src/components/Ui/tooltip/Tooltip'; import Alert from '../src/components/Ui/alert/Alert'; import Avatars from '../src/components/Ui/avatars/Avatars'; import Accordion from '../src/components/Ui/accordion/Accordion'; import BackButton from '../src/components/Ui/backButton/BackButton'; import ScrollTop from '../src/components/Ui/scrollTop/ScrollTop'; import Breadcrumb from '../src/components/Ui/breadcrumb/Breadcrumb'; import Card from '../src/components/Ui/Card/Card'; import ImageRadio from '../src/components/Ui/ImageRadio/ImageRadio'; import DropDown from './components/Ui/dropDown/DropDown'; import Button from './components/Ui/button/Button'; import Modal from '../src/components/Ui/modal/Modal'; import Tag from '../src/components/Ui/tag/Tag'; import Spinner from '../src/components/Ui/spinner/Spinner'; import Pagination from '../src/components/Ui/pagination/Pagination' import Tabs from '../src/components/Ui/tabs/Tabs'; // import PasswordField from './components/FormElements/PasswordField'; import CardImage from '../src/assets/images/thumb3.jpg'; type FormProps = { firstName: string, password: string, } type ItemProps = { title: string, icon?: string, content: string, } const items:ItemProps[] = [ { title: "Cycads", content: "Cycads have a cylindrical trunk which usually does not branch. Leaves grow directly from the trunk, and typically fall when older, leaving a crown of leaves at the top. The leaves grow in a rosette form, with new foliage emerging from the top and center of the crown. The trunk may be buried, so the leaves appear to be emerging from the ground, so the plant appears to be a basal rosette. The leaves are generally large in proportion to the trunk size, and sometimes even larger than the trunk." }, { title: "Gingko", content: "Ginkgo biloba, commonly known as ginkgo or gingko also known as the maidenhair tree, is a species of tree native to China. It is the last living species in the order Ginkgoales, which first appeared over 290 million years ago. Fossils very similar to the living species, belonging to the genus Ginkgo, extend back to the Middle Jurassic approximately 170 million years ago. The tree was cultivated early in human history and remains commonly planted." }, { title: "Conifers", content: "Conifers are a group of cone-bearing seed plants, a subset of gymnosperms. Scientifically, they make up the division Pinophyta, also known as Coniferophyta or Coniferae. The division contains a single extant class, Pinopsida. All extant conifers are perennial woody plants with secondary growth. The great majority are trees, though a few are shrubs." } ] function App() { const [state, setstate] = useState({ firstName: 'sivaguru', password: '' }); const [dob, setDob] = useState() const [gender, setGender] = useState('male') const [imageRadio, setImageRadio] = useState('visa'); const [selectedFile, setSelectedFile] = useState() const [showModal, setShowModal] = useState(false); // current page const [currentPage, setCurrentPage] = useState(1); // total records per page to display const recordPerPage = 10; // total number of the records const totalRecords = 850; // range of pages in paginator const pageRange = 5; // handle page change event const handlePageChange = (pageNumber:number) => { setCurrentPage(pageNumber); // call API to get data based on pageNumber } const handleChange = (event: any) => { const {name, value} = event.target; setstate({...state, [name]: value}); }; const dateChange = (date:Date) => { console.log(date) setDob(date) } const genderChange = (event:any) => { setGender(event.target.value) } const imageRadioChange = (event:any) => { console.log(event.target.value) setImageRadio(event.target.value) } const FileChange = (file:any) => { setSelectedFile(file) } // This function will scroll the window to the top const scrollToTop = () => { window.scrollTo({ top: 0, behavior: 'smooth' // for smoothly scrolling }); }; // Button onClick Functions const handleClick = () => { }; // Modal open functions const handleClickModal = () => { setShowModal(true) }; // MOdal close functions const hideModal = () => { setShowModal(false) } return (
{/* Header */}

Form elements

{/* Form elements */}
{/* First Name */}
{/* Password elements */}
{/* Password */}
{/* Form elements */}
{/* First Name */}