RetroAccordionSimple
A simple, responsive, retro-themed accordion component for business websites, with dark mode support using Tailwind CSS. This component uses a triadic color scheme and requires no JavaScript.
HTML Code
<div x-data="{ open: false }" class="border border-gray-300 dark:border-gray-700 rounded-lg mb-4">
<button @click="open = !open" class="w-full flex justify-between items-center p-4 bg-gray-200 dark:bg-gray-800 text-gray-800 dark:text-gray-200 focus:outline-none">
<span class="font-bold">Accordion Title</span>
<svg class="w-5 h-5 transform transition-transform duration-200" :class="{ 'rotate-180': open }" 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="M19 9l-7 7-7-7"></path></svg>
</button>
<div x-show="open" class="p-4 bg-white dark:bg-gray-900 text-gray-700 dark:text-gray-300">
<p>Accordion content goes here. This is a simple example with basic styling.</p>
</div>
</div>
Related Components
Accordion Component
A 3D styled accordion component designed for business/corporate websites with dark theme support.
NonProfit_Retro_Accordion
A complex, retro-themed accordion component designed for non-profit/charity websites, featuring muted color gradients, smooth transitions, and full responsiveness with dark mode support.
Material Design Accordion
Material Design Accordion for E-commerce with Complementary Color Scheme and Dark Theme Support.