JSFiddle - React, Tailwind, and code Playground
by aaaheatair
HTML
<button id= "open">Open menu</button>
<div class="menu">Tabbable content here</div>
JavaScript
$(".menu").hide();
$('html').click(function() {
$(".menu").hide();
});
$('#open').click(function(event){
event.stopPropagation();
$(".menu").show();
});