用于电子商务的极简主义响应式过滤器组件,支持深色主题。它包括类别、价格范围和滤色器。
<div class="bg-white dark:bg-gray-900 text-gray-800 dark:text-gray-200 p-4 rounded-lg shadow-md"> <h3 class="text-lg font-semibold mb-4">Filter Products</h3> <div class="mb-6"> <h4 class="text-md font-medium mb-2">Categories</h4> <ul class="space-y-2 text-sm"> <li><a href="#" class="hover:text-gray-600 dark:hover:text-gray-400">Electronics</a></li> <li><a href="#" class="hover:text-gray-600 dark:hover:text-gray-400">Apparel</a></li> <li><a href="#" class="hover:text-gray-600 dark:hover:text-gray-400">Home Goods</a></li> <li><a href="#" class="hover:text-gray-600 dark:hover:text-gray-400">Books</a></li> </ul> </div> <div class="mb-6"> <h4 class="text-md font-medium mb-2">Price Range</h4> <input type="range" min="0" max="1000" value="500" class="w-full h-2 bg-gray-200 dark:bg-gray-700 rounded-lg appearance-none cursor-pointer"> <div class="flex justify-between text-sm mt-1"> <span>$0</span> <span>$1000+</span> </div> </div> <div class="mb-6"> <h4 class="text-md font-medium mb-2">Color</h4> <div class="flex space-x-2"> <span class="block w-6 h-6 rounded-full bg-black cursor-pointer border-2 border-gray-300 dark:border-gray-600"></span> <span class="block w-6 h-6 rounded-full bg-white cursor-pointer border-2 border-gray-400 dark:border-gray-500"></span> <span class="block w-6 h-6 rounded-full bg-gray-500 cursor-pointer border-2 border-gray-300 dark:border-gray-600"></span> </div> </div> <button class="w-full bg-gray-800 dark:bg-gray-700 text-white py-2 px-4 rounded-md hover:bg-gray-700 dark:hover:bg-gray-600 transition-colors duration-300"> Apply Filters </button> </div>
一个响应式过滤器组件,具备微交互、生动的动画,并支持暗主题,使用Tailwind CSS。
一个简单的响应式过滤器组件,使用 Neumorphism 软 UI 设置样式,使用灰度配色方案,专为商业/公司网站设计。该组件支持深色模式,并使用 Tailwind CSS 构建,无需任何 JavaScript。
响应式滤镜组件,具有大地色调的 3D 设计元素,适用于产品组合,并支持深色主题。