E-commerce
CategoryFilter
Collapsible filter sidebar with checkbox groups for category, size, color, and price range.
Quick Preview
Filters
Installation
npm install lucide-react
// Copy component fromsrc/components/ecommerce/CategoryFilter.tsx
Usage
import CategoryFilter from '@/components/ecommerce/CategoryFilter'// Place as a sidebar filter panel — the component is self-contained with its own state<aside className="w-64"><CategoryFilter /></aside>
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Additional CSS classes |