Components Search Box Search Box Component

Search Box Component

A search box component designed with a skeuomorphic style to mimic a real-world search box, using a triadic color scheme, suitable for a portfolio and responsive with dark mode support.

Preview

HTML Code

<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-800">  
    <div class="relative w-full max-w-md">  
        <input type="text" placeholder="Search..."  
            class="w-full p-4 pl-10 pr-4 text-gray-800 dark:text-gray-200 bg-white dark:bg-gray-900 rounded-lg shadow-lg focus:outline-none focus:ring-2 focus:ring-blue-300 dark:focus:ring-blue-700"/>  
        <div class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 dark:text-gray-600">  
            <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">  
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 4a7 7 0 100 14 7 7 0 000-14zM16.293 16.293a8 8 0 111.414-1.414l4.281 4.283-1.414 1.414-4.282-4.283z" />  
            </svg>  
        </div>  
    </div>  
</div>

Related Components

Simple 3D Pastel Search Box

A responsive search box component with a 3D-like design, pastel color scheme, and dark theme support, built with Tailwind CSS for a blog/content website.

Open

Brutalist Search Box

A brutalist search box component for a dashboard, featuring a complementary color scheme and moderate complexity, with responsive design and dark theme support using Tailwind CSS.

Open

Brutalist_Weather_Search_Box

A complex, high-contrast, brutalist-style search box component for weather and climate data, featuring multiple input elements and responsive design with dark mode support.

Open