1.3.1 • Published 2 years ago
react-responsive-calendar-picker v1.3.1
react-responsive-calendar-picker
Made with create-react-library
Install
npm install --save react-responsive-calendar-picker
Usage
import React, { Component } from 'react'
import { DatePicker } from 'react-responsive-calendar-picker'
import 'react-responsive-calendar-picker/dist/index.css'
export default const App = () => {
const [dates, setDates] = useState({
checkin: new Date('2022-03-28'),
checkout: new Date('2022-04-28')
})
const [open, setOpen] = useState(false)
return (
<>
<DatePicker
dates={dates}
setDates={setDates}
open={open}
setOpen={setOpen}
mobile={window.innerWidth>800?false:true}
>
<button onClick={() => setOpen(!open)}>
{dates.checkin && dates.checkin.toDateString()} |{' '}
{dates.checkout && dates.checkout.toDateString()}
</button>
</DatePicker>
</>
)
}
License
MIT © bdbose
1.3.1
2 years ago
1.3.0
2 years ago
1.2.8
2 years ago
1.2.9
2 years ago
1.2.0
2 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.9
2 years ago
1.2.7
2 years ago
1.1.8
2 years ago
1.0.9
3 years ago
1.2.6
2 years ago
1.1.7
2 years ago
1.0.8
3 years ago
1.2.5
2 years ago
1.1.6
3 years ago
1.0.7
3 years ago
1.2.4
2 years ago
1.1.5
3 years ago
1.2.3
2 years ago
1.1.4
3 years ago
1.2.2
2 years ago
1.1.3
3 years ago
1.2.1
2 years ago
1.1.2
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago