コンポーネント アコーディオン ダークモードアコーディオン

ダークモードアコーディオン

ダッシュボード用のレスポンシブダークモードアコーディオンコンポーネント

プレビュー

HTMLコード

<div class="w-full max-w-md mx-auto rounded-lg overflow-hidden">
  <div class="bg-gray-800 text-gray-200 p-4 cursor-pointer flex justify-between items-center" onclick="this.nextElementSibling.classList.toggle('hidden')">
    <span>Section 1</span>
    <svg class="w-5 h-5 transform transition-transform duration-200" fill="none" viewBox="0 0 24 24" stroke="currentColor">
      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
    </svg>
  </div>
  <div class="p-4 bg-gray-700 hidden">
    <p>Content for section 1.</p>
  </div>

  <div class="bg-gray-800 text-gray-200 p-4 cursor-pointer flex justify-between items-center" onclick="this.nextElementSibling.classList.toggle('hidden')">
    <span>Section 2</span>
    <svg class="w-5 h-5 transform transition-transform duration-200" fill="none" viewBox="0 0 24 24" stroke="currentColor">
      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
    </svg>
  </div>
  <div class="p-4 bg-gray-700 hidden">
    <p>Content for section 2.</p>
  </div>

  <div class="bg-gray-800 text-gray-200 p-4 cursor-pointer flex justify-between items-center" onclick="this.nextElementSibling.classList.toggle('hidden')">
    <span>Section 3</span>
    <svg class="w-5 h-5 transform transition-transform duration-200" fill="none" viewBox="0 0 24 24" stroke="currentColor">
      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
    </svg>
  </div>
  <div class="p-4 bg-gray-700 hidden">
    <p>Content for section 3.</p>
  </div>
</div>

関連コンポーネント

Skeuomorphism パステルカラーのEコマースアコーディオン

パステルカラーのEコマース用のスキューモーフィックアコーディオンコンポーネントで、ダークモードのサポートなど、複雑なインタラクションと応答性に焦点を当てています。

開ける

アコーディオンコンポーネント

ダークテーマをサポートするビジネス/企業のWebサイト向けに設計された3Dスタイルのアコーディオンコンポーネント。

開ける

アコーディオンコンポーネント

アースカラーの配色、適度な複雑さ、ソーシャルメディア用、レスポンシブデザイン、ダークテーマのサポートを備えたダークモードアコーディオンコンポーネント。JavaScript はありません。

開ける