<script defer src="https://unpkg.com/alpinejs@latest/dist/cdn.min.js"></script>

<div x-data="{ showDropdown: false }" class="space-y-2">
  <button @click="showDropdown = !showDropdown" class="underline">Dropdown</button>

  <div x-cloak x-show="showDropdown" class="bg-gray-100 p-4">Menu</div>
</div>
