组件 搜索框 拟物化搜索框

拟物化搜索框

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

预览

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>

相关组件

搜索框组件

一个极简的搜索框组件,使用 Tailwind CSS 设计,具有响应效果和支持深色主题。

打开

搜索框组件

一个响应式搜索框组件,采用粗犷主义风格设计,支持深色主题,使用 Tailwind CSS。

打开

Glassmorphism 搜索框组件

具有灰度颜色的响应式 glassmorphism 样式搜索框组件,适用于博客或内容网站,具有磨砂玻璃状半透明输入和按钮。包括深色模式支持。

打开