Filtering search resultssimilar to
Pinterest
An image-led search page where the results are a masonry grid and the filters stay out of the way until asked for. Quick refinements sit in a scrolling row of chips above the grid and apply on a tap. Heavier choices, like what kind of result to show and the product filters, live in a column that opens beside the grid and edits a draft until Apply. Each content type brings its own layout: masonry for Pins and products, collages for boards, a list for profiles.
Every screen
The 6 steps in order. Pick one to open it in the preview above.
Installation
Part of shadcn/ui Pro
Pro unlocks one-command install of every flow in Radix UI, Base UI and React Aria, plus all 507 blocks, the Figma kit, themes and the MCP server for your AI editor.
Part of shadcn/ui Pro
Pro unlocks one-command install of every flow in Radix UI, Base UI and React Aria, plus all 507 blocks, the Figma kit, themes and the MCP server for your AI editor.
Why this flow works
Narrowing an image search with refinement chips, a colour palette picker and a filters column that switches between Pins, videos, boards, profiles and products.
Two speeds of filtering
Chips and palette swatches apply at once because they are cheap to try and easy to undo. The filters column holds the decisions that change the whole page (content type, price, brand), so they wait for Apply, and Apply stays disabled until the draft differs from what is shown.
Chips that never lead to nothing
The refinement row only offers guides that still return results when added to the current search. Picked chips jump to the front, turn solid and show a check, so the active refinements read left to right and each one is a tap to remove.
The content type reshapes the page
All Pins and Videos keep the masonry and the palette picker. Boards switch to collage cards, Profiles to a list with Follow buttons, and Products add Sale, Price, Brand and Retailer shortcuts to the chips row plus their own sections in the column.
Visual filters for visual results
The palette picker uses swatches cut from real photos instead of a dropdown, because people judge colour by eye. Picking the selected swatch again clears it, and the heading switches from "Pick a colour palette" to "Ideas in this palette" so the state is clear without a chip.
Step by step
- 01
Search results
Pins for "living room ideas" in a masonry grid, with refinement chips and a palette picker above.
The results come first and the quick refinements sit right above them, so most searches never need the filters column.
- 02
Open the filters
The filters column opens beside the grid with All Pins selected.
A column instead of a sheet keeps the results visible while the user decides. Apply and Reset are disabled because nothing differs from the defaults yet.
- 03
Show videos
Videos is applied: only video Pins remain, each with its length.
Same masonry, guides and palette as All Pins, so switching type keeps the user oriented. The Filters button keeps a dot while a filter is applied.
- 04
Show boards
Boards is applied: collage cards with the board name, owner and size.
Collections are judged by their cover, so each card shows three Pins from the board. Guides and the palette hide because they describe Pins, not boards.
- 05
Show profiles
Profiles is applied: a list of creators with their followers and a Follow button.
People are found by name and topic, so a narrow list with one action per row reads faster than a grid.
- 06
Shop products
Products is applied: priced items, product shortcuts in the chips row and product sections in the column.
Shopping needs controls the other types do not: a sale toggle, a price range and brand and retailer lists. They appear only here, edit the same draft and apply together.
Built with shadcn/ui and Radix UI
- Radio Group
- Checkbox
- Dropdown Menu
- Input Group
- Label
- Button
- Avatar
- Sonner
This is an original rebuild of the flow's structure, with its own brand, copy and artwork. Pinterest is a trademark of its owner; this page is not affiliated with or endorsed by Pinterest.
Frequently asked questions
Installing, adapting and theming this flow for Radix UI.
With a Pro plan, run npx shadcn@latest add @shadcnpro/flow-pinterest-filtering-search-results. The shadcn CLI copies the flow into components/flows/pinterest-filtering-search-results/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-pinterest-filtering-search-results) and React Aria (@shadcnpro/aria/flow-pinterest-filtering-search-results) ship the same flow, with the same steps and copy.
No. It is an original rebuild of the structure of Pinterest's filtering & sorting flow, written from scratch with shadcn/ui, with its own brand, copy and artwork. Pinterest is a trademark of its owner, and this page is not affiliated with or endorsed by Pinterest.
Yes, the flow is a pattern, not a fixed template. A step you add should follow the same rules as the others, listed under Step anatomy in the flow spec, so it reads as part of the same flow.
Use the prompt in the Installation section. The agent installs the flow, then reads the flow spec at https://pro.shadcn.co/flows/pinterest-filtering-search-results.md, which describes the layout, the rules every step follows, each step's fields and actions, and how to adapt the flow. That way it builds a version with your brand and your steps instead of a one-to-one copy.
The search runs for real in the browser over a sample index in `content.ts`: 39 Pins, 12 boards, 12 profiles and 18 products. Every chip, swatch, content type, product filter and empty state is computed from it. Saving a Pin and following a profile only update local state. In a real app, send the same `FlowData` object to your search endpoint and return facets for the guides.
Radio Group, Checkbox, Dropdown Menu, Input Group, Label, Button, Avatar and Sonner, in their Radix UI versions. Everything else is plain markup with Tailwind CSS.
Yes. The flow only uses semantic tokens such as bg-background, bg-card and text-muted-foreground, so it picks up your colours, radius and fonts and switches with dark mode. Use the theme menu above the preview to see it in the Pro themes.
Yes. Below `sm` the sketched rail is hidden and the logo moves into the header. Below `md` the filters column covers the results with a close button, and Apply closes it to show the new results. The masonry drops to two columns and the chips row scrolls sideways.