[blocks]: Filter Component for Ecommerce like Sidebar #7873
a95z
started this conversation in
Blocks Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I would like to request a Filter Component Block for ecommerce pages, designed to work like a sidebar but built with Shadcn Canary and Tailwind CSS v4. This component should be reusable (similar to the Shadcn sidebar) and dynamically render filter groups from JSON.
Key Features & Functionalities
Dynamic Filter Groups
(e.g., Shoes (12))
, where the count is smaller and muted.Price Range Slider
Slider
component.$10 – $200
).Search Params Integration
searchParams
dynamically.price_min
andprice_max
.UI & UX Standards
overflow-y-auto
with a fixed max height.Component API
groups: FilterGroup[]
where each group can betype: "checkbox"
ortype: "range"
.onChange
callback to propagate selected filters as an object.Checkbox
,Label
,ScrollArea
, andSlider
.Example JSON
Beta Was this translation helpful? Give feedback.
All reactions