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 playground
5 of 5
  • Spring presets
    Merged Tuesday
    MotionCore
  • Focus ring audit
    In review
    A11y
  • Dark theme tokens
    Open
    ThemingCore
  • Reduced-motion pass
    Open
    A11yMotion
  • Docs search
    Planned
    Docs

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

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
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"