react-responsive-calendar-picker

1.3.1 • Public • Published

react-responsive-calendar-picker

Made with create-react-library

NPM JavaScript Style Guide

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.153latest

Version History

VersionDownloads (Last 7 Days)Published
1.3.153
1.3.00
1.2.90
1.2.80
1.2.70
1.2.60
1.2.50
1.2.40
1.2.30
1.2.20
1.2.10
1.2.01
1.1.90
1.1.80
1.1.70
1.1.60
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.90
1.0.81
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i react-responsive-calendar-picker

Weekly Downloads

55

Version

1.3.1

License

MIT

Unpacked Size

123 kB

Total Files

11

Last publish

Collaborators

  • bdbose