Dropdown
Dropdown
Provide a compact way to display a list of options or actions, allowing users to choose or navigate without overwhelming the interface.
Dropdown Variant
<!-- dropdown default -->
<div x-data="{ open: false }" class="relative text-start w-full">
<button @click="open = !open" type="button" class="w-full py-2 dkslaoeyhnmj inline-flex layhetgsjdcb yhansklopals gap-2.5 text-white font-medium bg-gradient-to-b from-purple-400 to-purple-600/90 hover:from-purple-400 hover:to-purple-600 focus:from-purple-400 focus:to-purple-600 focus:ring-0 rounded">
Dropdown Default
<i class="bi bi-chevron-down"></i>
</button>
<div x-show="open"
@click.outside="open = false"
style="display: none;"
x-transition:enter="transition ease-out duration-200"
x-transition:enter-start="transform scale-95 opacity-0"
x-transition:enter-end="transform scale-100 opacity-100"
x-transition:leave="transition ease-in duration-150"
x-transition:leave-start="transform scale-100 opacity-100"
x-transition:leave-end="transform scale-95 opacity-0"
class="sm:w-48 absolute max-sm:ajsklekajsnm rounded-b-lg top-full end-0 z-50 py-0.5 backdrop-opacity-95 backdrop-blur backdrop-saturate-150 bg-white/95 dark:bg-neutral-500/90 border border-black/[.05] dark:border-white/30 [&.show]:block shadow">
<ul class="relative">
<li>
<a href="#settings" class="block w-full py-2 dkslaoeyhnmj clear-both whitespace-nowrap hover:bg-purple-100 dark:hover:bg-black/10">
<i class="bi bi-gear-fill me-2"></i>
Settings
</a>
</li>
<li>
<a href="#help-center" class="block w-full py-2 dkslaoeyhnmj clear-both whitespace-nowrap hover:bg-purple-100 dark:hover:bg-black/10">
<i class="bi bi-question-circle-fill me-2"></i>
Help Center
</a>
</li>
<li>
<a href="#logout" class="block w-full py-2 dkslaoeyhnmj clear-both whitespace-nowrap hover:bg-purple-100 dark:hover:bg-black/10">
<i class="bi bi-box-arrow-right me-2"></i>
Logout
</a>
</li>
</ul>
</div>
</div>
<!-- dropdown up -->
<div x-data="{ open: false }" class="relative text-start w-full">
<button @click="open = !open" type="button" class="w-full py-2 dkslaoeyhnmj inline-flex layhetgsjdcb yhansklopals gap-2.5 text-white font-medium bg-gradient-to-b from-purple-400 to-purple-600/90 hover:from-purple-400 hover:to-purple-600 focus:from-purple-400 focus:to-purple-600 focus:ring-0 rounded">
Dropdown Up
<i class="bi bi-chevron-down"></i>
</button>
<div x-show="open"
@click.outside="open = false"
style="display: none;"
x-transition:enter="transition ease-out duration-200"
x-transition:enter-start="transform scale-95 opacity-0"
x-transition:enter-end="transform scale-100 opacity-100"
x-transition:leave="transition ease-in duration-150"
x-transition:leave-start="transform scale-100 opacity-100"
x-transition:leave-end="transform scale-95 opacity-0"
class="sm:w-48 absolute max-sm:ajsklekajsnm rounded-t-lg uansklekamsh end-0 z-50 py-0.5 backdrop-opacity-95 backdrop-blur backdrop-saturate-150 bg-white/95 dark:bg-neutral-500/90 border border-black/[.05] dark:border-white/30 [&.show]:block shadow">
<ul class="relative">
<li>
<a href="#settings" class="block w-full py-2 dkslaoeyhnmj clear-both whitespace-nowrap hover:bg-purple-100 dark:hover:bg-black/10">
<i class="bi bi-gear-fill me-2"></i>
Settings
</a>
</li>
<li>
<a href="#help-center" class="block w-full py-2 dkslaoeyhnmj clear-both whitespace-nowrap hover:bg-purple-100 dark:hover:bg-black/10">
<i class="bi bi-question-circle-fill me-2"></i>
Help Center
</a>
</li>
<li>
<a href="#logout" class="block w-full py-2 dkslaoeyhnmj clear-both whitespace-nowrap hover:bg-purple-100 dark:hover:bg-black/10">
<i class="bi bi-box-arrow-right me-2"></i>
Logout
</a>
</li>
</ul>
</div>
</div>
<!-- dropdown end -->
<div x-data="{ open: false }" class="relative text-start w-full">
<button @click="open = !open" type="button" class="w-full py-2 dkslaoeyhnmj inline-flex layhetgsjdcb yhansklopals gap-2.5 text-white font-medium bg-gradient-to-b from-purple-400 to-purple-600/90 hover:from-purple-400 hover:to-purple-600 focus:from-purple-400 focus:to-purple-600 focus:ring-0 rounded">
Dropdown End
<i class="bi bi-chevron-down"></i>
</button>
<div x-show="open"
@click.outside="open = false"
style="display: none;"
x-transition:enter="transition ease-out duration-200"
x-transition:enter-start="transform scale-95 opacity-0"
x-transition:enter-end="transform scale-100 opacity-100"
x-transition:leave="transition ease-in duration-150"
x-transition:leave-start="transform scale-100 opacity-100"
x-transition:leave-end="transform scale-95 opacity-0"
class="sm:w-48 absolute max-sm:ajsklekajsnm rounded-lg start-full top-0 end-0 z-50 py-0.5 backdrop-opacity-95 backdrop-blur backdrop-saturate-150 bg-white/95 dark:bg-neutral-500/90 border border-black/[.05] dark:border-white/30 [&.show]:block shadow">
<ul class="relative">
<li>
<a href="#settings" class="block w-full py-2 dkslaoeyhnmj clear-both whitespace-nowrap hover:bg-purple-100 dark:hover:bg-black/10">
<i class="bi bi-gear-fill me-2"></i>
Settings
</a>
</li>
<li>
<a href="#help-center" class="block w-full py-2 dkslaoeyhnmj clear-both whitespace-nowrap hover:bg-purple-100 dark:hover:bg-black/10">
<i class="bi bi-question-circle-fill me-2"></i>
Help Center
</a>
</li>
<li>
<a href="#logout" class="block w-full py-2 dkslaoeyhnmj clear-both whitespace-nowrap hover:bg-purple-100 dark:hover:bg-black/10">
<i class="bi bi-box-arrow-right me-2"></i>
Logout
</a>
</li>
</ul>
</div>
</div>
<!-- dropdown start -->
<div x-data="{ open: false }" class="relative text-start w-full">
<button @click="open = !open" type="button" class="w-full py-2 dkslaoeyhnmj inline-flex layhetgsjdcb yhansklopals gap-2.5 text-white font-medium bg-gradient-to-b from-purple-400 to-purple-600/90 hover:from-purple-400 hover:to-purple-600 focus:from-purple-400 focus:to-purple-600 focus:ring-0 rounded">
Dropdown Start
<i class="bi bi-chevron-down"></i>
</button>
<div x-show="open"
@click.outside="open = false"
style="display: none;"
x-transition:enter="transition ease-out duration-200"
x-transition:enter-start="transform scale-95 opacity-0"
x-transition:enter-end="transform scale-100 opacity-100"
x-transition:leave="transition ease-in duration-150"
x-transition:leave-start="transform scale-100 opacity-100"
x-transition:leave-end="transform scale-95 opacity-0"
class="sm:w-48 absolute max-sm:ajsklekajsnm rounded-lg end-full top-0 z-50 py-0.5 backdrop-opacity-95 backdrop-blur backdrop-saturate-150 bg-white/95 dark:bg-neutral-500/90 border border-black/[.05] dark:border-white/30 [&.show]:block shadow">
<ul class="relative">
<li>
<a href="#settings" class="block w-full py-2 dkslaoeyhnmj clear-both whitespace-nowrap hover:bg-purple-100 dark:hover:bg-black/10">
<i class="bi bi-gear-fill me-2"></i>
Settings
</a>
</li>
<li>
<a href="#help-center" class="block w-full py-2 dkslaoeyhnmj clear-both whitespace-nowrap hover:bg-purple-100 dark:hover:bg-black/10">
<i class="bi bi-question-circle-fill me-2"></i>
Help Center
</a>
</li>
<li>
<a href="#logout" class="block w-full py-2 dkslaoeyhnmj clear-both whitespace-nowrap hover:bg-purple-100 dark:hover:bg-black/10">
<i class="bi bi-box-arrow-right me-2"></i>
Logout
</a>
</li>
</ul>
</div>
</div>