ハンバーガーメニューコンポーネント
ブルータリズムデザインのレスポンシブハンバーガーメニューコンポーネントで、ハイコントラスト、大胆なスタイル、ダークモードのサポートが特徴です。
HTMLコード
<div class="relative bg-white dark:bg-gray-800 p-4 rounded-lg shadow-lg">
<button class="flex items-center justify-center w-10 h-10 text-black dark:text-white hover:bg-gray-300 dark:hover:bg-gray-700 rounded-md transition-all">
<svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7"/>
</svg>
</button>
<div class="absolute right-0 mt-2 w-48 bg-white dark:bg-gray-800 rounded-lg shadow-lg opacity-0 transition-opacity duration-300 ease-in-out transform scale-0 origin-top-right">
<div class="flex flex-col p-4 rounded-lg">
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" class="rounded-full w-10 h-10 mb-2">
<h3 class="text-lg font-bold text-black dark:text-white">Menu Title</h3>
<ul class="space-y-2">
<li>
<a href="#" class="block px-2 py-1 text-black dark:text-white hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-all">Item 1</a>
</li>
<li>
<a href="#" class="block px-2 py-1 text-black dark:text-white hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-all">Item 2</a>
</li>
<li>
<a href="#" class="block px-2 py-1 text-black dark:text-white hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-all">Item 3</a>
</li>
</ul>
</div>
</div>
</div>
関連コンポーネント
ハンバーガーメニューコンポーネント19
スケルタルなハンバーガーメニューコンポーネントで、現実世界の要素を模倣したスキューモーフィックなスタイルでデザインされています。レスポンシブで、Tailwind CSSを使用したダークモードのサポートが含まれています。
レトロなEコマースハンバーガーメニュー
レトロ/ビンテージ(80年代/90年代)の美学と補色(パープル、シアン、ゴールド)でスタイリングされた、複雑でレスポンシブなダークモード対応のeコマース用ハンバーガーメニューコンポーネント。メインナビゲーション、アカウントリンク、カート、検索、およびチェックボックスハックを使用した純粋なCSSトグルを備えています。Tailwind CSS クラスを使用します。