UNPKG

react-timeslot-calendar

Version:

A calendar based on timeslots which can be set as available, occupied and so on.

16 lines (14 loc) 318 B
```js <ReactTimeslotCalendar initialDate = { moment([2017, 3, 24]).format() } timeslots = { [ ['9', '10'], ['10', '11'], ['18'], ] } onSelectTimeslot={(timeslots, lastSelected) => { // Do stuff with timeslots. console.log(lastSelected.startDate); }} /> ```