组件 过滤 器 筛选器组件

筛选器组件

一个简单的过滤器组件,专为博客或内容消费网站设计,遵循具有单色配色方案的深色模式 UI。它具有元素最少的响应式布局。

预览

HTML 代码

<div class="bg-gray-800 dark:bg-gray-900 p-5 rounded-md shadow-lg max-w-md mx-auto">
    <h2 class="text-white text-lg font-semibold mb-4">Filters</h2>
    <div class="mb-4">
        <label for="category" class="text-gray-300 dark:text-gray-400">Category</label>
        <select id="category" class="bg-gray-700 dark:bg-gray-800 text-white border border-gray-600 rounded-md w-full p-2 mt-1">
            <option>All</option>
            <option>Technology</option>
            <option>Health</option>
            <option>Lifestyle</option>
            <option>Travel</option>
        </select>
    </div>
    <div class="mb-4">
        <label for="author" class="text-gray-300 dark:text-gray-400">Author</label>
        <select id="author" class="bg-gray-700 dark:bg-gray-800 text-white border border-gray-600 rounded-md w-full p-2 mt-1">
            <option>All</option>
            <option>John Doe</option>
            <option>Jane Smith</option>
            <option>Chris Johnson</option>
        </select>
    </div>
    <div class="mb-4">
        <label class="text-gray-300 dark:text-gray-400">Sort By</label>
        <div class="flex space-x-4 mt-1">
            <label class="inline-flex items-center">
                <input type="radio" class="form-radio text-blue-500" name="sort" value="latest">
                <span class="ml-2 text-white">Latest</span>
            </label>
            <label class="inline-flex items-center">
                <input type="radio" class="form-radio text-blue-500" name="sort" value="popular">
                <span class="ml-2 text-white">Popular</span>
            </label>
        </div>
    </div>
    <button class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-md">Apply Filters</button>
</div>

相关组件

过滤器组件Neumorphism

一个简单的响应式过滤器组件,使用 Neumorphism 软 UI 设置样式,使用灰度配色方案,专为商业/公司网站设计。该组件支持深色模式,并使用 Tailwind CSS 构建,无需任何 JavaScript。

打开

玻璃态滤镜组件

Glassmorphism Filters Social Media 组件,具有响应式设计和深色主题支持。

打开

Memphis_Job_Filters

一个响应式工作过滤器组件,具有俏皮的孟菲斯设计风格、三元配色方案和深色模式支持,适用于工作委员会和职业平台。

打开