组件 搜索框 Glassmorphism 搜索框

Glassmorphism 搜索框

一个简单、响应式的 glassmorphism 搜索框组件,具有灰度颜色,适用于仪表板。支持深色模式。

预览

HTML 代码

<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" placeholder="Search..." class="w-full py-3 px-5 pr-12 rounded-lg backdrop-filter backdrop-blur-lg bg-white bg-opacity-20 dark:bg-gray-800 dark:bg-opacity-20 border border-gray-200 dark:border-gray-700 text-gray-800 dark:text-gray-200 placeholder-gray-600 dark:placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-300 dark:focus:ring-gray-600 transition duration-300 ease-in-out"
    />
    <div class="absolute inset-y-0 right-0 flex items-center pr-4 pointer-events-none">
      <svg class="h-5 w-5 text-gray-600 dark:text-gray-400" 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>
    </div>
  </div>
</div>

相关组件

搜索框组件

使用 Tailwind CSS 的响应式搜索框,支持深色模式。

打开

搜索框组件

带有3D设计、响应效果和黑暗主题支持的搜索框组件。

打开

Skeuomorphic_Vibrant_Search_Box_Component

一个中等复杂度的搜索框组件,具有拟物化设计、充满活力的配色方案和完全响应能力,支持深色模式,适用于博客/内容网站。

打开