JSFiddle - React, Tailwind, and code Playground

by tikosar

HTML

<input type="date">
<button class="open">open</button>

<script>
document.querySelector('.open').addEventListener('click', () => {
document.querySelector('input').showPicker()
})
</script>