Table of Contents Component
A responsive Table of Contents component styled with Material Design principles using Tailwind CSS, supporting dark mode and featuring placeholder images and avatars.
HTML Code
<div class="bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md">
<h2 class="text-xl font-bold mb-4 text-gray-800 dark:text-white">Table of Contents</h2>
<ul class="space-y-2">
<li class="p-4 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition ease-in-out duration-150">
<div class="flex items-center">
<img src="https://picsum.photos/40/40?random=1" alt="Avatar 1" class="rounded-full mr-3">
<a href="#section1" class="text-gray-700 dark:text-gray-200 hover:underline">Section 1: Introduction</a>
</div>
</li>
<li class="p-4 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition ease-in-out duration-150">
<div class="flex items-center">
<img src="https://picsum.photos/40/40?random=2" alt="Avatar 2" class="rounded-full mr-3">
<a href="#section2" class="text-gray-700 dark:text-gray-200 hover:underline">Section 2: Getting Started</a>
</div>
</li>
<li class="p-4 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition ease-in-out duration-150">
<div class="flex items-center">
<img src="https://picsum.photos/40/40?random=3" alt="Avatar 3" class="rounded-full mr-3">
<a href="#section3" class="text-gray-700 dark:text-gray-200 hover:underline">Section 3: Features</a>
</div>
</li>
<li class="p-4 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition ease-in-out duration-150">
<div class="flex items-center">
<img src="https://picsum.photos/40/40?random=4" alt="Avatar 4" class="rounded-full mr-3">
<a href="#section4" class="text-gray-700 dark:text-gray-200 hover:underline">Section 4: Conclusion</a>
</div>
</li>
</ul>
</div>
Related Components
Glassmorphism_RealEstate_TableOfContents
A glassmorphism-styled Table of Contents component for real estate listings, featuring translucent elements, blur effects, and a purple/violet color scheme. It's responsive and supports dark mode.
Table of Contents Component
A clean, minimalist, and responsive Table of Contents component inspired by Swiss/International typography, designed for documentation and knowledge base sites, featuring warm neutral colors and full dark mode support.
Table of Contents
Table of Contents Component with Microinteractions design, Analogous color scheme, Simple complexity, and Social Media purpose. Responsive with dark theme support. No JavaScript code.