JSFiddle - React, Tailwind, and code Playground

HTML

<div style="width:200px; height:200px; position:relative; ">
<input type="text" id="input1">
</div>

CSS

.move { position:absolute; top:20px; left:20px; }

JavaScript

$("#input1").datepicker();
$("#input1").datepicker("option", "beforeShow", function(input, inst){
  $(input).addClass("move");
  $(inst.dpDiv).position({
     my: "left top",
     at: "left bottom",
     of: $(input)
   });
});