JSFiddle - React, Tailwind, and code Playground

HTML

<div id="host">
  <input id="colorPick" type="color" />
  <label for="colorPick">Pick a color</label>
</div>

CSS

input {
    display: none;
}
label { 
    border: 1px solid green;
    padding: 5px;
}

JavaScript

setTimeout(function() {
   var div = document.getElementById("host");
   document.body.removeChild(div);
}, 5000);