Components Add to Cart Button Add to Cart Button Component

Add to Cart Button Component

A responsive Add to Cart button designed for dark mode using Tailwind CSS.

Preview

HTML Code

<div class="flex items-center justify-center p-10 bg-gray-900 min-h-screen">
    <div class="bg-gray-800 rounded-lg shadow-lg p-6">
        <div class="flex items-center">
            <img src="https://picsum.photos/100" alt="Product Image" class="w-16 h-16 rounded-lg mr-4">
            <div class="text-white">
                <h2 class="text-lg font-semibold">Product Name</h2>
                <p class="text-gray-400">Product description goes here.</p>
                <p class="text-xl font-bold mt-2">$29.99</p>
            </div>
        </div>
        <button class="mt-4 w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded transition duration-200 ease-in-out">
            Add to Cart
        </button>
    </div>
</div>

Related Components

Add to Cart Button Component

A brutalism-inspired Add to Cart button component with Tailwind CSS, featuring high contrast, unusual layouts, responsive effects, and dark theme support.

Open

Add to Cart Button Component

A responsive "Add to Cart" button component styled with Material Design principles, featuring a triadic color scheme and supporting dark mode. Designed for dashboard use, it includes a quantity selector and integrates depth effects using Tailwind CSS for shadows and animations.

Open

Add to Cart Button Component

A 3D styled 'Add to Cart' button component designed for social media interfaces. It features a rich interface with depth, engaging design elements, and is responsive with dark theme support.

Open