JSFiddle - React, Tailwind, and code Playground
HTML
<div class="extended-textfield"><label id="lead" for="from">From: </label><input id="from" type="text" /></div>
CSS
div.extended-textfield {
background-color: white;
border: 2px inset;
cursor: auto;
width: 250px;
}
label {
color: gray;
}
input, input[type="text"], input:focus {
border: none;
outline: none;
}
JavaScript
$( "#from" ).datepicker();
$("#lead").click(function() {
$("from").datepicker('show');
});