FilterBar
URL-param-backed filters with resolved-value chips.
npx shadcn add @lopifi/filter-barExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
How it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
URL-param-backed, so a filtered view is shareable and survives a refresh. Chips show resolved values: "1–30 Sep 2026", not "Last 30 days". Clear-all always present. Result count updates live. Filter state changes are instant, no animation.
More in Ledger & tables
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section FilterBar renders in, the calculators behind its figures, and the ledger payloads that feed it.
- FilterBar, runningThe tables showcase — live, with theme, density, grayscale and reduced-motion switches.
- Ledger & tablesThe table is the product. It gets the same design attention as the hero card. Specs for 17 React components: TransactionTable, TransactionRow, TransactionCard, TransactionDetail and 13 more.
Components are copied into your repository and meant to be edited. Rounding policy, fiscal calendar and compliance copy differ per company.
Release notes
Get an email when Ledger & tables changes
Your copy doesn’t update itself when we fix something here.
- One email when a Ledger & tables component needs a migration
- Nothing when nothing changes
Or install it now