Skip to main content
FlowsFiltering & SortingFiltering revenue similar to Stripe
shadcn/ui Flows

Filtering revenuesimilar toStripe

The filter bar of a subscription billing dashboard, rebuilt on about 1,700 sample subscriptions. One button holds the date range; its popover offers presets on the left, Start and End inputs and a two-month range calendar on the right, and changes nothing until Apply. Next to it, an interval select (daily, weekly, monthly) and a comparison select. Every chart, headline number and change badge is computed from the same daily series, so the charts always agree with each other. The dashboard around the filters (sidebar, top bar, page actions, the other reports) is a wireframe sketch where your own app goes.

Install flow

Step 1 of 5Billing overview

Every screen

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

01Billing overviewRevenue for the last 7 days, daily: MRR, MRR growth, net volume and growth rate, each compared with the previous 7 days.
02Open the date rangeThe date popover: presets on the left with Last 7 days highlighted, the Start and End dates and the range on a two-month calendar.
03Choose All timeAll time is highlighted: the inputs read 03/04/2024 to 11/23/2026 and the calendar fills both months.
04All-time revenue, monthlyThe charts redrawn for all time: 33 monthly buckets from March 2024, the interval switched to Monthly and the button reading All time.
05SubscribersThe Subscribers tab keeps All time and Monthly: active, net growth, new and churned subscribers, then subscriptions by product.

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 date range filter for a metrics dashboard: presets, typed dates and a two-month calendar in one popover, with interval and comparison selects that redraw every chart from the same data.

One date button, three ways to pick

Presets cover the ranges people ask for every week (last 7 days, month to date, all time); the calendar and the typed Start and End dates cover the rest. The button shows the preset name, or the dates of a custom range, so the page always says what it shows.

Draft until Apply

Picking a preset or clicking days only changes the popover: the highlighted preset, the inputs and the calendar. The charts redraw once, on Apply, and Escape or a click outside throws the draft away. That keeps a dashboard with many charts from recomputing on every click.

The interval follows the range

Daily is offered up to four months, weekly from two weeks and monthly from two months; options that would draw one bar or hundreds of points are disabled. Applying a range keeps the current interval when it still fits and otherwise picks one, which is why "All time" switches the charts to monthly.

Comparison as a quiet second line

The previous period (or the same dates last year) is drawn as a dashed muted line behind each line chart, and the headline gets a green or red change badge. When the comparison falls before the first data, the line and badge disappear instead of showing a misleading +100%.

Step by step

  1. 01

    Billing overview

    Revenue for the last 7 days, daily: MRR, MRR growth, net volume and growth rate, each compared with the previous 7 days.

    The default view answers "how was this week?" without any input. The filter row above the charts says which range, interval and comparison every number uses.

  2. 02

    Open the date range

    The date popover: presets on the left with Last 7 days highlighted, the Start and End dates and the range on a two-month calendar.

    The current range is shown three ways (preset, typed dates, calendar), so people can adjust it from whichever they trust. Nothing on the page changes yet.

  3. 03

    Choose All time

    All time is highlighted: the inputs read 03/04/2024 to 11/23/2026 and the calendar fills both months.

    A preset updates the inputs and moves the calendar so the selection is visible, which confirms the choice before anything is redrawn.

  4. 04

    All-time revenue, monthly

    The charts redrawn for all time: 33 monthly buckets from March 2024, the interval switched to Monthly and the button reading All time.

    Daily points over two and a half years would be noise, so the interval follows the range. The comparison has no earlier data to show, so its line and badges are gone rather than misleading.

  5. 05

    Subscribers

    The Subscribers tab keeps All time and Monthly: active, net growth, new and churned subscribers, then subscriptions by product.

    The filters belong to the page, not to a tab, so switching reports keeps the period. The breakdown select regroups the same subscriptions by product, billing interval or currency.

Built with shadcn/ui and Radix UI

  • Button
  • Popover
  • Calendar
  • Input
  • Label
  • Select
  • Tabs
  • Chart

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.