组件 搜索框 拟物化搜索框

拟物化搜索框

一个具有拟物化设计的搜索框组件,模仿现实世界元素,具有响应性和暗黑主题支持.

预览

HTML 代码

<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900 p-4">
  <div class="relative w-full max-w-md">
    <input type="text" class="p-4 pl-10 pr-4 text-gray-900 bg-white border border-gray-300 rounded-lg shadow-lg dark:bg-gray-800 dark:text-white dark:border-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 placeholder-gray-400" placeholder="Search..." />
    <svg class="absolute left-3 top-3 w-5 h-5 text-gray-400 dark:text-gray-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6a4 4 0 1 1 0 8 4 4 0 0 1 0-8zm4 0a8 8 0 1 0 0 16 8 8 0 0 0 0-16z" />
    </svg>
  </div>
</div>

相关组件

搜索框组件

具有野兽派设计的响应式搜索框组件,使用适合商业网站的互补配色方案。

打开

简单的3D柔和色调搜索框

一个响应式搜索框组件,具有3D般的设计、柔和的配色方案和暗色主题支持,使用 Tailwind CSS 构建,适合博客/内容网站。

打开

搜索框组件

一个响应式搜索框组件,采用Material Design原则设计,具有Tailwind CSS样式和深色主题支持。

打开