Components Product Comparison Product Comparison Component

Product Comparison Component

A simple product comparison component designed for dark mode UI using a grayscale color scheme. It features a basic layout with minimal elements, ideal for blog content and reading purposes.

Preview

HTML Code

<div class="bg-gray-800 text-white p-4 rounded-lg shadow-lg max-w-2xl mx-auto">
    <h2 class="text-xl font-bold mb-4">Product Comparison</h2>
    <table class="min-w-full">
        <thead>
            <tr class="bg-gray-700">
                <th class="px-4 py-2">Feature</th>
                <th class="px-4 py-2">Product A</th>
                <th class="px-4 py-2">Product B</th>
            </tr>
        </thead>
        <tbody>
            <tr class="border-b border-gray-600">
                <td class="px-4 py-2">Price</td>
                <td class="px-4 py-2">$199</td>
                <td class="px-4 py-2">$249</td>
            </tr>
            <tr class="border-b border-gray-600">
                <td class="px-4 py-2">Rating</td>
                <td class="px-4 py-2">⭐⭐⭐⭐</td>
                <td class="px-4 py-2">⭐⭐⭐⭐⭐</td>
            </tr>
            <tr class="border-b border-gray-600">
                <td class="px-4 py-2">Warranty</td>
                <td class="px-4 py-2">1 Year</td>
                <td class="px-4 py-2">2 Years</td>
            </tr>
            <tr class="border-b border-gray-600">
                <td class="px-4 py-2">Image</td>
                <td class="px-4 py-2"><img src="https://picsum.photos/100/100?random=1" alt="Product A" class="rounded" /></td>
                <td class="px-4 py-2"><img src="https://picsum.photos/100/100?random=2" alt="Product B" class="rounded" /></td>
            </tr>
        </tbody>
    </table>
    <div class="flex justify-between mt-4">
        <div class="flex items-center">
            <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-10 h-10 rounded-full" />
            <span class="ml-2">Reviewed by John Doe</span>
        </div>
        <a href="#" class="text-blue-400 hover:underline">Read More</a>
    </div>
</div>

Related Components

Product Comparison Component

A skeuomorphic product comparison component designed with Tailwind CSS featuring responsive effects and dark theme support.

Open

Product Comparison Component

A simple, responsive product comparison component with a Memphis Design aesthetic, using a retro/vintage color palette. Designed for CRM/Business Tools, it supports dark mode and displays key features for two products.

Open

Product Comparison Component - Real Estate (Paper/Print-inspired)

A simple, paper/print-inspired product comparison component for real estate listings, featuring two properties. Uses purple/violet tones and supports dark mode.

Open