구성 요소 드롭다운 메뉴 드롭다운 메뉴 구성 요소 5

드롭다운 메뉴 구성 요소 5

다크 모드용으로 설계된 반응형 드롭다운 메뉴 구성 요소로, 스타일링 및 레이아웃에 Tailwind CSS를 활용합니다. 이 구성 요소는 세련된 디자인, 호버 효과 및 어두운 테마 지원을 특징으로 하여 현대적인 UI 경험을 보장합니다.

미리 보기

HTML 코드

<div class="relative inline-block text-left">
  <div>
    <button class="inline-flex justify-center w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-gray-800 text-sm font-medium text-white hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white" id="options-menu" aria-haspopup="true" aria-expanded="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.23 7.21a.75.75 0 011.06 0L10 10.293l3.71-3.09a.75.75 0 111.02 1.1l-4 3.333a.75.75 0 01-1.02 0l-4-3.333a.75.75 0 010-1.1z" clip-rule="evenodd" />
      </svg>
    </button>
  </div>

  <div class="absolute right-0 z-10 mt-2 w-56 rounded-md shadow-lg bg-gray-800 ring-1 ring-black ring-opacity-5 focus:outline-none" role="menu" aria-orientation="vertical" aria-labelledby="options-menu" tabindex="-1">
    <div class="py-1" role="none">
      <a href="#" class="flex items-center px-4 py-2 text-sm text-gray-400 hover:bg-gray-700 hover:text-white" role="menuitem">
        <img class="h-8 w-8 rounded-full mr-2" src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" />
        Profile
      </a>
      <a href="#" class="flex items-center px-4 py-2 text-sm text-gray-400 hover:bg-gray-700 hover:text-white" role="menuitem">
        <img class="h-8 w-8 rounded-full mr-2" src="https://randomuser.me/api/portraits/women/1.jpg" alt="Avatar" />
        Settings
      </a>
      <a href="#" class="flex items-center px-4 py-2 text-sm text-gray-400 hover:bg-gray-700 hover:text-white" role="menuitem">
        <img class="h-8 w-8 rounded-full mr-2" src="https://picsum.photos/id/1/200/200" alt="Placeholder" />
        My Images
      </a>
      <a href="#" class="flex items-center px-4 py-2 text-sm text-gray-400 hover:bg-gray-700 hover:text-white" role="menuitem">
        <img class="h-8 w-8 rounded-full mr-2" src="https://picsum.photos/id/2/200/200" alt="Placeholder" />
        Logout
      </a>
    </div>
  </div>
</div>

관련 구성 요소

사이버펑크 다크 모드 드롭다운 메뉴

대시보드를 위한 복잡한 사이버펑크 테마의 드롭다운 메뉴 구성 요소로, 어두운 배경, 미묘하고 밝은 액센트가 있는 그레이스케일 색상, 완전한 응답성을 제공합니다.

열다

3D 드롭다운 메뉴 컴포넌트

포트폴리오 전시를 위해 설계된 생생한 색 구성표가 있는 반응형 드롭다운 메뉴 구성 요소입니다. 다크 모드에 적합한 인터랙티브 요소가 있는 3D 디자인이 특징입니다.

열다

스큐어모픽 드롭다운 메뉴

소셜 미디어를 위한 스큐어모픽 드롭다운 메뉴(단순, 유사 색상)

열다