JSFiddle - React, Tailwind, and code Playground

by chris callaghan

HTML

<script src="https://dbushell.github.io/Pikaday/pikaday.js"></script>
<link rel="stylesheet" href="https://dbushell.github.io/Pikaday/css/pikaday.css">
<input id="datepicker">

JavaScript

var picker = new Pikaday({
    disableDayFn: function(date){
        // Disable Monday
        return date.getDay() === 1 || date.getDay() === 2;
    },
    field: document.getElementById('datepicker')
});