tailwind only dropdown
// tailwind.config.js
module.exports = {
// ...
variants: {
display: ['responsive', 'group-hover', 'group-focus'],
},
}
tailwind only dropdown
// tailwind.config.js
module.exports = {
// ...
variants: {
display: ['responsive', 'group-hover', 'group-focus'],
},
}
tailwind only dropdown
<nav aria-label="primary" class="relative z-20 flex-col flex-grow hidden pb-4 md:pb-0 md:flex md:justify-end md:flex-row">
<div class="relative group">
<button class="flex flex-row items-center w-full px-4 py-4 mt-2 text-base font-bold text-left uppercase bg-transparent rounded-lg md:w-auto md:inline md:mt-0 md:ml-4 focus:outline-none font-montserrat">
<span>First Dropdown</span>
</button>
<div class="absolute z-10 hidden bg-grey-200 group-hover:block">
<div class="px-2 pt-2 pb-4 bg-white bg-gray-200 shadow-lg">
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
<p>
dropdown content here
</p>
</div>
</div>
</div>
</div>
<div class="relative group">
<button class="flex flex-row items-center w-full px-4 py-4 mt-2 text-base font-bold text-left uppercase bg-transparent rounded-lg md:w-auto md:inline md:mt-0 md:ml-4 focus:outline-none font-montserrat">
<span>Second Dropdown</span>
</button>
<div class="absolute z-10 hidden bg-grey-200 group-hover:block">
<div class="px-2 pt-2 pb-4 bg-white bg-gray-200 shadow-lg">
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
<p>
dropdown content here
</p>
</div>
</div>
</div>
</div>
</nav>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us