react-month-calendar

Month calendar widget for React

Usage no npm install needed!

<script type="module">
  import reactMonthCalendar from 'https://cdn.skypack.dev/react-month-calendar';
</script>

README

react-month-calendar

Simple month calendar widget for React

Usage

npm install
gulp

Component API

<Month> component:

Property Type Default Required Description
date Moment.js supported input types yes no Default: current date
headerDateFormat Object yes no Structure: {m: 'MMM', y: 'YYYY'}. Moment.js date string format
firstDayOfWeek String yes no Day of the week ([0,6] with 0=Sunday)
onDayClick Function no no Accepts Moment.js date object

License

See the License file.