Skip to main content

Usage

Create a new calendar instance using create() method, and add the options you need!

<!-- HTML -->
<div class="form-field">
  <label class="form-field__label">Datepicker Demo</label>
  <input id="datepicker" type="text">
</div>
/* javascript */
const datePicker = MCDatepicker.create({
  el: '#datepicker',
  bodyType: 'modal'
});