コンポーネント ナビゲーションバー ナビゲーションバーコンポーネント

ナビゲーションバーコンポーネント

マイクロインタラクションを備えたレスポンシブナビゲーションバー、およびTailwind CSSを使用したダークモードのサポート。

プレビュー

HTMLコード

<nav class="bg-white dark:bg-gray-800 shadow-md">
  <div class="container mx-auto px-6 py-3">
    <div class="flex items-center justify-between">
      <div class="text-xl font-semibold text-gray-700 dark:text-white">
        <a href="#" class="hover:text-gray-900 dark:hover:text-gray-200 transition duration-300 ease-in-out">My Website</a>
      </div>
      <div class="hidden md:block">
        <div class="flex items-center space-x-4">
          <a href="#" class="text-gray-700 dark:text-white hover:text-gray-900 dark:hover:text-gray-200 transition duration-300 ease-in-out transform hover:scale-105">Home</a>
          <a href="#" class="text-gray-700 dark:text-white hover:text-gray-900 dark:hover:text-gray-200 transition duration-300 ease-in-out transform hover:scale-105">About</a>
          <a href="#" class="text-gray-700 dark:text-white hover:text-gray-900 dark:hover:text-gray-200 transition duration-300 ease-in-out transform hover:scale-105">Services</a>
          <a href="#" class="text-gray-700 dark:text-white hover:text-gray-900 dark:hover:text-gray-200 transition duration-300 ease-in-out transform hover:scale-105">Contact</a>
        </div>
      </div>
      <div class="md:hidden">
        <button class="text-gray-700 dark:text-white focus:outline-none">
          <svg viewBox="0 0 24 24" fill="currentColor" class="h-6 w-6">
            <path fill-rule="evenodd" d="M4 5h16a1 1 0 010 2H4a1 1 0 110-2zm0 6h16a1 1 0 010 2H4a1 1 0 010-2zm0 6h16a1 1 0 010 2H4a1 1 0 010-2z"></path>
          </svg>
        </button>
      </div>
    </div>
  </div>
</nav>

関連コンポーネント

ダークモードナビゲーションバー

レスポンシブ効果とダークテーマをサポートするナビゲーションバーコンポーネント。

開ける

ナビゲーションバーコンポーネント

ダッシュボード用に設計されたシンプルなレスポンシブナビゲーションバーコンポーネントで、単色の配色とマイクロインタラクションが特徴です。これには、魅力的なアニメーションのためのホバー効果を備えたダークモードのサポートが含まれています。

開ける

ナビゲーション・バー・コンポーネント 16

レスポンシブ効果とダークテーマのサポートを備えたミニマリストのフラットデザインのナビゲーションバーコンポーネント。

開ける