组件 过滤 器 筛选器组件

筛选器组件

一个设计为粗犷主义风格的响应式过滤器组件,采用灰度色彩方案,适用于仪表板环境。它包含互动过滤选项,并支持暗主题。

预览

HTML 代码

<div class="bg-gray-800 dark:bg-gray-900 p-6 rounded-lg shadow-lg">
    <h2 class="text-xl font-bold text-white mb-4">Filters</h2>
    <div class="grid grid-cols-2 gap-4">
        <div class="flex flex-col">
            <label class="text-gray-300 dark:text-gray-400 mb-2">Date Range:</label>
            <input type="date" class="p-2 border border-gray-600 rounded bg-gray-700 dark:bg-gray-800 text-white" />
            <input type="date" class="p-2 mt-2 border border-gray-600 rounded bg-gray-700 dark:bg-gray-800 text-white" />
        </div>
        <div class="flex flex-col">
            <label class="text-gray-300 dark:text-gray-400 mb-2">User:</label>
            <input type="text" class="p-2 border border-gray-600 rounded bg-gray-700 dark:bg-gray-800 text-white" placeholder="Search by user..." />
        </div>
        <div class="flex flex-col">
            <label class="text-gray-300 dark:text-gray-400 mb-2">Status:</label>
            <select class="p-2 border border-gray-600 rounded bg-gray-700 dark:bg-gray-800 text-white">
                <option class="bg-gray-700 dark:bg-gray-800">All</option>
                <option class="bg-gray-700 dark:bg-gray-800">Active</option>
                <option class="bg-gray-700 dark:bg-gray-800">Inactive</option>
            </select>
        </div>
        <div class="flex flex-col">
            <label class="text-gray-300 dark:text-gray-400 mb-2">Category:</label>
            <select class="p-2 border border-gray-600 rounded bg-gray-700 dark:bg-gray-800 text-white">
                <option class="bg-gray-700 dark:bg-gray-800">Select category...</option>
                <option class="bg-gray-700 dark:bg-gray-800">Category 1</option>
                <option class="bg-gray-700 dark:bg-gray-800">Category 2</option>
            </select>
        </div>
    </div>
    <button class="mt-4 p-2 bg-gray-600 hover:bg-gray-500 text-white rounded">Apply Filters</button>
</div>

相关组件

过滤器组件

一个复杂且响应式的过滤器组件,具有3D设计元素和三元色彩方案,适用于博客/内容网站。支持暗黑主题。

打开

Glassmorphism Filters 组件

一个简单、响应式的 Glassmorphism 风格的滤镜组件,适用于产品组合,具有磨砂玻璃般的半透明元素,具有模糊效果、互补色和暗模式支持。

打开

Filters 组件

一个 filters 组件,采用拟物化样式设计,模拟真实世界的控件,采用灰度配色方案,非常适合具有复杂交互元素的仪表板。

打开