Filtering homessimilar to
Airbnb
A photo-led results page with a map, and every filter in one long dialog behind a single Filters button. Nothing applies behind the user’s back: the dialog collects choices and its footer button says exactly what they lead to ("Show 7 homes"). Common picks get big shortcut tiles at the top, the long lists fold away at the bottom, and the button in the header keeps a badge with the number of filters on.
Every screen
The 7 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 a grid of stays from one Filters dialog: quick picks, type of place, a price histogram with a two-thumb range, rooms, amenities, standout stays and host language, with a live count on the button.
The count is the Apply button
The footer button is recomputed on every tick, so its label ("Show 13 homes", "Show 7 homes") tells the user what they will get before they leave the dialog. It also switches its noun with the type of place: places, rooms or homes.
A histogram that explains the price slider
Bars show how many stays of the chosen type of place sit at each price, drawn from the listings themselves, and turn grey outside the chosen range. Amenity ticks leave the shape alone, so it doesn’t jump while the user works down the dialog. The two thumbs and the Minimum and Maximum inputs edit the same values, and the top of the range reads "$1,000+" so the user can leave it open.
Shortcuts first, long lists last
Four large tiles cover the filters most people pick (Pool, Washer, Free parking, Instant Book) and drive the same values as the full amenity and booking lists. Long, rarely used lists (property type, accessibility, host language) fold behind their titles at the end.
One badge, one way out
After the dialog closes, the Filters button carries a dark outline and a count of active filters, the heading says how many homes are left and the map shows only their pins. When nothing matches, the grid is replaced by "No exact matches" with a Remove all filters button.
Step by step
- 01
Browse stays
A grid of photo cards for the search, with a map of prices beside it.
Results come first and the filters stay one click away. The heading carries the count, so the effect of filtering is easy to compare later.
- 02
Pick quick filters and a type of place
The Filters dialog opens on shortcut tiles and a segmented choice between any type, a room or an entire home.
The most common choices sit above the fold as big targets. Choosing "Entire home" also renames the results from places to homes on the footer button.
- 03
Set a price range
Drag the thumbs or type a minimum and maximum for the whole trip.
The histogram shows where prices cluster before the user commits to a number, and the bars outside the range fade so the cut is visible.
- 04
Rooms, amenities and booking
Set at least two bedrooms and turn on Wifi, Kitchen and Self check-in.
Counters read as minimums ("2+"), and amenities are independent toggles that all have to match. Show more reveals the less common amenities without crowding the dialog.
- 05
Standout stays
Pick Guest favorite and open the accessibility features.
Quality signals get descriptive cards because their names alone don’t explain them. Accessibility needs are long and specific, so they fold away until needed.
- 06
Host language
Expand Host language and tick English.
A two-column checkbox list keeps a dozen languages scannable. Hosts who speak any ticked language match, so adding languages widens the results.
- 07
Filtered results
The dialog closes on the homes that match, with a count badge on the Filters button.
The badge shows filters are on without listing them, the heading gives the new count and the map keeps only the matching pins. Reopening the dialog shows every choice as it was left.
Built with shadcn/ui and Radix UI
- Dialog
- Toggle
- Toggle Group
- Collapsible
- Checkbox
- Input Group
- Label
- Button
- Avatar
- Sonner
This is an original rebuild of the flow's structure, with its own brand, copy and artwork. Airbnb is a trademark of its owner; this page is not affiliated with or endorsed by Airbnb.
Frequently asked questions
Installing, adapting and theming this flow for Radix UI.
With a Pro plan, run npx shadcn@latest add @shadcnpro/flow-airbnb-filtering-homes. The shadcn CLI copies the flow into components/flows/airbnb-filtering-homes/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-airbnb-filtering-homes) and React Aria (@shadcnpro/aria/flow-airbnb-filtering-homes) ship the same flow, with the same steps and copy.
No. It is an original rebuild of the structure of Airbnb's filtering & sorting flow, written from scratch with shadcn/ui, with its own brand, copy and artwork. Airbnb is a trademark of its owner, and this page is not affiliated with or endorsed by Airbnb.
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/airbnb-filtering-homes.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.
Filtering is real: 48 sample stays in `content.ts` (prices, rooms, amenities, languages, map positions) and every count, histogram bar, badge, map pin and empty state is computed from them in the browser. Saving a stay only shows a toast. In a real app, replace `filterListings()` and `priceHistogram()` with requests that take the same `FlowData`, and keep the dialog as it is.
Dialog, Toggle, Toggle Group, Collapsible, Checkbox, 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 `lg` the map and the sketched header links are hidden and the grid drops to two columns, then one below `sm`. The sketched search pill shrinks and the Filters button becomes an icon with its badge. The dialog fills the screen width, and the shortcut tiles wrap to two per row.