Awesome calendar for your React App.
React-Pure-Calendar is available as an npm package.
npm install react-pure-calendar
Default styles included in styles.css
import Calendar from 'react-pure-calendar';
<Calendar
format="DD-MMM-YYYY"
defaultDate="20181109"
disabledDays={[0]}
disabledDates={["20181208"]}
minDate=""
maxDate=""
currDateClass=""
selectedDateClass=""
showToday={true}
onSelect={(date) => console.log(date)}/>
String
Required
- Allowed Keys: All formats supported by moment.js
String
- To show a default Date
- Always enter in this format
YYYYMMDD
Array
of days0
- Sunday,1
- Monday,2
- Tuesday,3
- Wednesday,4
- Thursday,5
- Friday,6
- Saturday
Array
of dates- Format
YYYYMMDD
- The dates you want to disable
- Format
YYYYMMDD
- Date from where user can select dates; before that all dates will be disabled
- Format
YYYYMMDD
- Date from where user cannot select dates; after that all dates will be disabled
String
- class to style
current
date
String
- class to style
selected
date
Boolean
- Whether to show
Today
link
Function
- Returns a
Date
. You can pass your function use the Date.
MIT