FilterList
Tag chips with live counts above a list. Pick chips and the list narrows: what stays glides up, what goes fades out. Data.
Open playground5 of 5
- Spring presetsMerged TuesdayMotionCore
- Focus ring auditIn reviewA11y
- Dark theme tokensOpenThemingCore
- Reduced-motion passOpenA11yMotion
- Docs searchPlannedDocs
About
FilterList is a React component in the Data category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { FilterList } from "@ashutoshswamy/smoui" and set items, match.
Install
npm i @ashutoshswamy/smouiUsage
import { FilterList } from "@ashutoshswamy/smoui";
<FilterList match="any" items={[{ id: "1", title: "Spring presets", tags: ["Motion", "Core"] }, { id: "2", title: "Focus ring audit", tags: ["A11y"] }]} />Props 2
- items
Chips are built from the tags, with counts.
{ id; title; meta?; tags: string[] }[]- match
Show items with any chosen tag, or only those with every one.
"any""all"default"any"
More data components
- ActivityFeedA feed joined by a thin line. New items slide in at the top while the rest make room; the first load rises in item by item.
- CalendarMonth grid date picker. The month slides the way you travel, the selection glides between days and across months, and arrows, Home, End and Page keys all work.
- DataTableA data table on one flat surface. Search, sort, page and select; rows glide into their new order, one highlight stretches between rows, a selection bar takes over the toolbar, and rows open to detail. People, status and number columns are built in.
- DiffViewA line diff. Changed lines slide in from their side, the part that really changed is marked, and a thumb switches between one column and two.
- KanbanA board whose columns wrap to any width. Cards carry tags, priority, a due date and people. Pick one up and it lifts and tilts, a slot opens where it will land and the rest slide apart. Work-in-progress limits, inline add and keyboard moves are built in.
- KpiGridA row of headline numbers. Tiles rise in one after another, then each value counts up, its delta turns with its sign and its trend line draws.