Components Tabs Tabs Component

Tabs Component

A responsive tabs component designed in a skeuomorphic style for an e-commerce application, using a pastel color scheme and Tailwind CSS.

Preview

HTML Code

<div class="max-w-3xl mx-auto p-4">
    <h2 class="text-2xl font-semibold mb-4">Product Categories</h2>
    <div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg border border-gray-300 dark:border-gray-700">
        <div class="flex border-b border-gray-200 dark:border-gray-600">
            <button class="flex-1 py-3 text-center text-gray-700 dark:text-gray-200 font-semibold rounded-t-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 dark:focus:ring-indigo-400">
                <span>Electronics</span>
            </button>
            <button class="flex-1 py-3 text-center text-gray-700 dark:text-gray-200 font-semibold rounded-t-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 dark:focus:ring-indigo-400">
                <span>Clothing</span>
            </button>
            <button class="flex-1 py-3 text-center text-gray-700 dark:text-gray-200 font-semibold rounded-t-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 dark:focus:ring-indigo-400">
                <span>Home & Kitchen</span>
            </button>
        </div>
        <div class="p-4">
            <div class="tab-content hidden">
                <h3 class="text-xl font-semibold">Electronics</h3>
                <img src="https://picsum.photos/300/200?random=1" alt="Electronics" class="rounded-lg mb-4">
                <p class="text-gray-600 dark:text-gray-400">Latest gadgets and devices for your tech needs.</p>
            </div>
            <div class="tab-content hidden">
                <h3 class="text-xl font-semibold">Clothing</h3>
                <img src="https://picsum.photos/300/200?random=2" alt="Clothing" class="rounded-lg mb-4">
                <p class="text-gray-600 dark:text-gray-400">Trendy and comfortable apparel for all occasions.</p>
            </div>
            <div class="tab-content hidden">
                <h3 class="text-xl font-semibold">Home & Kitchen</h3>
                <img src="https://picsum.photos/300/200?random=3" alt="Home & Kitchen" class="rounded-lg mb-4">
                <p class="text-gray-600 dark:text-gray-400">Quality products to enhance your living spaces.</p>
            </div>
        </div>
    </div>
</div>

Related Components

Glassmorphism Tabs Component

Simple Glassmorphism Tabs Component for Portfolio, with responsive design and dark theme support. Uses vibrant color scheme.

Open

Tabs Component

Responsive Tabs Component with Earth tones and Microinteractions for Business websites, supporting dark mode using Tailwind CSS. Uses only HTML and Tailwind classes.

Open

Tabs Component

A minimalist tabs component for e-commerce websites with interactive elements, responsive design, and dark mode support.

Open