Dropdown-Menü "Neumorph" (Graustufen)
Neumorphes Dropdown-Menü mit Graustufenfarben. Einfaches Layout für die Portfolio-Nutzung, reaktionsschnell mit Unterstützung des Dunkelmodus. Kein JavaScript.
HTML-Code
<div class="dark:bg-gray-900 bg-gray-200 min-h-screen flex items-center justify-center font-sans">
<!-- Dropdown container -->
<div class="relative inline-block text-left">
<!-- Dropdown toggle button -->
<button type="button" class="inline-flex justify-center w-full rounded-md dark:bg-gray-800 dark:text-gray-300 dark:shadow-2xl dark:hover:bg-gray-700 bg-gray-300 px-4 py-2 text-sm font-medium text-gray-700 shadow-lg hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 dark:focus:ring-offset-gray-900 focus:ring-gray-500" id="menu-button" aria-expanded="true" aria-haspopup="true">
Options
<svg class="-mr-1 ml-2 h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg>
</button>
<!-- Dropdown menu (hidden by default) -->
<div class="absolute right-0 mt-2 w-56 origin-top-right rounded-md dark:bg-gray-800 dark:shadow-2xl bg-gray-300 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none" role="menu" aria-orientation="vertical" aria-labelledby="menu-button" tabindex="-1">
<div class="py-1" role="none">
<!-- Menu Item -->
<a href="#" class="block px-4 py-2 text-sm dark:text-gray-300 dark:hover:bg-gray-700 text-gray-700 hover:bg-gray-100" role="menuitem" tabindex="-1" id="menu-item-0">My Work</a>
<a href="#" class="block px-4 py-2 text-sm dark:text-gray-300 dark:hover:bg-gray-700 text-gray-700 hover:bg-gray-100" role="menuitem" tabindex="-1" id="menu-item-1">About Me</a>
<a href="#" class="block px-4 py-2 text-sm dark:text-gray-300 dark:hover:bg-gray-700 text-gray-700 hover:bg-gray-100" role="menuitem" tabindex="-1" id="menu-item-2">Contact</a>
</div>
</div>
</div>
</div>
Verwandte Komponenten
Dropdown-Menü-Komponente
Eine reaktionsschnelle Dropdown-Menükomponente, die mit Mikrointeraktionen, einem analogen Farbschema und Unterstützung für dunkle Themen gestaltet wurde und für eine Portfolio-Website geeignet ist.
Dropdown-Menü Komponente 5
Eine reaktionsschnelle Dropdown-Menükomponente, die für den Dunkelmodus entwickelt wurde und Tailwind CSS für Styling und Layout verwendet. Die Komponente verfügt über ein schlankes Design, Hover-Effekte und Unterstützung für dunkle Themen, um ein modernes UI-Erlebnis zu gewährleisten.
Dropdown-Menü-Komponente
Ein einfaches, reaktionsschnelles Dropdown-Menü mit einem 3D-Erdton-Design, das für Blogs oder Content-Websites geeignet ist. Enthält Unterstützung für den Dunkelmodus.