JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" class="form-control weekcal-x" name="start" id="start" />
JavaScript
$(".weekcal-x").datepicker({
showWeek: false,
firstDay: 0,
maxDate: +7,
minDate: 0,
onSelect: function (dateText, inst) {
$(this).val($.datepicker.formatDate("dd/mm/yy", new Date(dateText)));
}
}).datepicker('widget').addClass('ui-weekpicker');
$('.ui-weekpicker').on('mousemove', 'tr', function () {
$(this).find('td a').addClass('ui-state-hover');
});
$('.ui-weekpicker').on('mouseleave', 'tr', function () {
$(this).find('td a').removeClass('ui-state-hover');
});