cf-react-date-picker
v1.0.0
Published
Made with create-react-library
Downloads
2
Readme
cf-datepicker
Made with create-react-library
Install
npm install --save cf-datepicker
Usage
import React, { useState } from 'react'
import { DatePicker } from 'cf-datepicker'
import 'cf-datepicker/dist/index.css'
const App = () => {
const [value, setValue] = useState("");
return (
<div className='row'>
<div className='col-6'>
<DatePicker
id="id"
name="name"
longDate={true}
value={value}
className=" form-control"
onChange={(e) => { setValue(e.target.value); console.log(e) }}
/>
</div>
</div>
)
}
export default App
License
MIT © Arnoldkhosa