Filtering transactionssimilar to
Stripe
A dense payments list that stays readable as it is narrowed down. Every field you can filter on is a small pill above the table; each pill opens its own editor, applies on one button, and turns into a removable chip that says exactly what is filtered. The status cards above the table double as one-click presets and keep their counts in step with the other filters.
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
A payments table narrowed with filter chips: a relative date range with a time zone, a multi-select status list, live counts on status cards and an empty state that clears everything.
Every filter is visible before it is used
Date, amount, currency, status and payment method sit in a row of dashed "+ Field" pills, so users see what they can filter on without opening a menu. A rarely used field goes behind "More filters" instead of a pill of its own.
One editor per field, shaped for its values
Dates take a condition (in the last, equal to, between, after, before), the value it needs and a time zone. Amounts take a comparison and one or two numbers. Lists take checkboxes. Nothing changes until Apply, so half-typed values never flash through the table.
The chip tells you what is filtered
Once applied, the dashed pill becomes a solid chip with the value in the accent colour ("Last 3 days", "Blocked, Cancelled +1") and a remove button on its left. A "Clear filters" link appears only while something is filtered.
Counts and empty states answer "why is it empty?"
The status cards count against every other filter, so users can see where the payments went before they pick a status. When nothing matches, the table is replaced by a short empty state with one button that clears everything.
Step by step
- 01
All payments
The full payments table with status cards and a row of filter pills.
Every filterable field is on screen before anything is filtered, and the cards show how the payments split by status.
- 02
Filter by date and time
Choose "is in the last", type a number, pick a unit and a time zone, then apply.
A relative range answers the most common question ("what came in recently?") in two inputs. The time zone decides where a day starts, which matters for "is equal to" and "is between".
- 03
Results for the last 3 days
The table and the card counts shrink to the date range; the chip reads "Last 3 days".
The applied chip says what is filtered and can be removed in one click. "Clear filters" appears next to the chips.
- 04
Filter by status
Tick one or more statuses in a scrolling checklist and apply.
Statuses are a closed list, so checkboxes beat typing. Several can be combined, and the chip shows the first two with a count for the rest.
- 05
Filtered results
Both filters applied. Blocked or cancelled payments in the last 3 days: none, so the empty state shows.
An empty table with filters on is a dead end unless it says why and offers a way out. The cards still show what the date range holds.
Built with shadcn/ui and Radix UI
- Button
- Popover
- Select
- Input
- Checkbox
- Radio Group
- Field
- Label
- Table
This is an original rebuild of the flow's structure, with its own brand, copy and artwork. Stripe is a trademark of its owner; this page is not affiliated with or endorsed by Stripe.
Frequently asked questions
Installing, adapting and theming this flow for Radix UI.
With a Pro plan, run npx shadcn@latest add @shadcnpro/flow-stripe-filtering-transactions. The shadcn CLI copies the flow into components/flows/stripe-filtering-transactions/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-stripe-filtering-transactions) and React Aria (@shadcnpro/aria/flow-stripe-filtering-transactions) ship the same flow, with the same steps and copy.
No. It is an original rebuild of the structure of Stripe's filtering & sorting flow, written from scratch with shadcn/ui, with its own brand, copy and artwork. Stripe is a trademark of its owner, and this page is not affiliated with or endorsed by Stripe.
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/stripe-filtering-transactions.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 payments live in a local array and every filter really runs against it, but there is no backend: "now" is fixed so relative dates always give the same results, row actions do nothing, and the dashboard around the list is a wireframe sketch where your own app goes. In a real app, send the applied filters to your list endpoint, use its totals for the status cards and keep the filters in the URL.
Button, Popover, Select, Input, Checkbox, Radio Group, Field, Label and Table, 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 medium breakpoint the sketched sidebar is hidden, the status cards go to three columns, the filter pills wrap onto several lines and the table scrolls sideways inside its container. Popovers keep their 288px width, which fits a phone screen.