Skip to main content
FlowsFiltering & SortingFiltering search results similar to Pinterest
shadcn/ui Flows

Filtering search resultssimilar toPinterest

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.

Install flow

Step 1 of 6Search results

Every screen

The 6 steps in order. Pick one to open it in the preview above.

01Search resultsPins for "living room ideas" in a masonry grid, with refinement chips and a palette picker above.
02Open the filtersThe filters column opens beside the grid with All Pins selected.
03Show videosVideos is applied: only video Pins remain, each with its length.
04Show boardsBoards is applied: collage cards with the board name, owner and size.
05Show profilesProfiles is applied: a list of creators with their followers and a Follow button.
06Shop productsProducts is applied: priced items, product shortcuts in the chips row and product sections in the column.

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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.