UNPKG

react-garden

Version:

React + TypeScript + ThreeJS app using Material UI on NextJS, Apollo Client, GraphQL + WordPress REST APIs, for ThreeD web development.. a part of the threed.ai code family.

53 lines (46 loc) 1.31 kB
// ** React Imports import { useState } from 'react' // ** MUI Imports import Box from '@mui/material/Box' // ** Third Party Imports import DatePicker from 'react-datepicker' // ** Custom Component Imports import CustomInput from './PickersCustomInput' const PickersBasic = () => { // ** States const [date, setDate] = useState(new Date()) return ( <Box sx={{ display: 'flex', flexWrap: 'wrap' }} className='demo-space-x'> <Box> <DatePicker selected={date} id='basic-input' onChange={date => setDate(date)} placeholderText='Click to select a date' customInput={<CustomInput label='Basic' />} /> </Box> <Box> <DatePicker disabled selected={date} id='disabled-input' onChange={date => setDate(date)} placeholderText='Click to select a date' customInput={<CustomInput label='Disabled' />} /> </Box> <Box> <DatePicker readOnly selected={date} id='read-only-input' onChange={date => setDate(date)} placeholderText='Click to select a date' customInput={<CustomInput readOnly label='Readonly' />} /> </Box> </Box> ) } export default PickersBasic