Filtering companiessimilar to
Attio
A filter builder for dense record tables. Each filter is one chip that reads like a sentence (Employee range · less than · 1K–5K), built in three small pickers that open one after another from the chip itself. The table narrows the moment the sentence is complete, and the view only changes for everyone when you save it.
Every screen
The 5 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
Filter a CRM table with chips: pick an attribute, a condition and a value, and the rows, the count and the save bar update as you go.
A filter reads like a sentence
Attribute, condition, value: three segments on one chip, each a button that reopens its own picker. Users can change "less than" to "greater than" without rebuilding the filter, and anyone glancing at the toolbar can read what the table shows.
Conditions follow the attribute
Text gets contains and starts with, ranked lists (employee range, connection strength) get less than and greater than, tags get contains any of, and "is empty" needs no value at all, so the chip completes as soon as it is picked.
The value picker matches the data
Options appear exactly as they do in the table (the same coloured tags and strength bars) with a search on top. Conditions that can match several values show checkboxes and stay open; single-value conditions apply on the first click.
Results respond, the view waits
Rows and the count update on every change and incomplete chips are ignored instead of emptying the table. Discard changes and Save view only appear once the view differs from what was saved, and an empty result offers Clear filters instead of a blank grid.
Step by step
- 01
Companies table
All 32 companies, sorted by last interaction, with a Filter button in the toolbar.
Filters start from a populated table so the user sees what they are narrowing. The toolbar shows the current sort next to the Filter button, both one click away.
- 02
Pick an attribute
A searchable list of company attributes opens under Filter.
Starting with the attribute narrows everything that follows: the conditions and values offered next depend on it. Search keeps long attribute lists usable.
- 03
Choose a condition
The new chip shows "Select condition" and the condition menu is open under it.
Only conditions that make sense for the attribute are offered. A ranked attribute like employee range gets less than and greater than; empty and not empty complete the chip without a value.
- 04
Pick a value
The value picker lists the options as coloured tags, with a search on top.
Options look the same as in the table, so users recognise them. "Less than" takes one value and applies on click; "is" takes several and keeps the list open with checkboxes.
- 05
Filtered results
Eleven companies with fewer than 1,000 employees, the chip in the toolbar and a save bar on the right.
The count and rows change at once, and the chip stays editable in place. Save view appears because the view now differs from the saved one; Discard changes puts it back.
Built with shadcn/ui and Radix UI
- Button
- Popover
- Command
- Dropdown Menu
- Input
- Field
- Checkbox
- Avatar
- Sonner
This is an original rebuild of the flow's structure, with its own brand, copy and artwork. Attio is a trademark of its owner; this page is not affiliated with or endorsed by Attio.
Frequently asked questions
Installing, adapting and theming this flow for Radix UI.
With a Pro plan, run npx shadcn@latest add @shadcnpro/flow-attio-filtering-companies. The shadcn CLI copies the flow into components/flows/attio-filtering-companies/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-attio-filtering-companies) and React Aria (@shadcnpro/aria/flow-attio-filtering-companies) ship the same flow, with the same steps and copy.
No. It is an original rebuild of the structure of Attio's filtering & sorting flow, written from scratch with shadcn/ui, with its own brand, copy and artwork. Attio is a trademark of its owner, and this page is not affiliated with or endorsed by Attio.
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/attio-filtering-companies.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 table filters and sorts for real, but in memory: 32 sample companies in content.ts run through applyView in state.ts. Saving a view updates local state and shows a toast. In a real app, send the complete filters and the sort to your API or database query, and store saved views per user or team.
Button, Popover, Command, Dropdown Menu, Input, Field, Checkbox, 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 the large breakpoint the sketched sidebar is hidden, the toolbar wraps onto more lines and the table scrolls sideways with the company column pinned. The pickers keep their width and stay inside the screen.