Components Search Box Search Box Component

Search Box Component

Search Box Component with 3D design, responsive effects, and dark theme support.

Preview

HTML Code

<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900">
  <div class="relative w-full max-w-md">
    <input
      type="text"
      class="w-full px-5 py-3 text-gray-800 placeholder-gray-500 bg-white border border-gray-300 rounded-full shadow-lg dark:bg-gray-700 dark:text-gray-200 dark:placeholder-gray-400 dark:border-gray-600 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-600 transition transform duration-300 ease-in-out hover:scale-105 focus:scale-105"
      placeholder="Search..."
    />
    <button
      class="absolute inset-y-0 right-0 flex items-center px-4 text-white bg-blue-600 rounded-r-full hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-blue-700 dark:hover:bg-blue-800 dark:focus:ring-blue-600 transition transform duration-300 ease-in-out hover:scale-105"
    >
      <svg
        class="w-5 h-5"
        fill="none"
        stroke="currentColor"
        viewBox="0 0 24 24"
        xmlns="http://www.w3.org/2000/svg"
      >
        <path
          stroke-linecap="round"
          stroke-linejoin="round"
          stroke-width="2"
          d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
        ></path>
      </svg>
    </button>
  </div>
</div>

Related Components

Search Box Component

A Glassmorphism-style complex search box component with analogous color scheme, suitable for a portfolio, featuring responsive design and dark theme support using only HTML and Tailwind CSS.

Open

Skeuomorphic Search Box Component

Skeuomorphic Search Box for Social Media

Open

Search Box Component

A responsive search box with dark mode support using Tailwind CSS.

Open