AppliedFilters
Applied-filter summary with a live count, removable chips and an edit action.
Design intent
Filter panels close, collapse or move into a drawer. AppliedFilters keeps the active set visible outside the panel and gives the user one place to edit or clear it.
npx @slipstream-ui/cli@latest add applied-filtersProps
| Prop | Type | Default | Description |
|---|---|---|---|
| filters | FilterChip[] | required | Active filters to display. |
| onClearAll | () => void | — | Clear-all action. |
| onEdit | () => void | — | Opens the filter panel for editing. |
| label | string | — | Optional summary text; defaults to N active. |
| emptyLabel | string | — | Shown when there are no filters. |
| editLabel | string | 'Edit filters' | Edit action label. |
Anti-patterns
validate_usage is the MCP tool that rejects these mistakes: the same list agents see over MCP and in the canonical markdown.
Don't duplicate FilterChips
AppliedFilters already renders FilterChips. Use one summary per filter surface.
tsx// Avoid two chip rows with the same filters
Accessibility
- The wrapper uses aria-live=polite so count changes are announced.
- Remove and clear actions come from FilterChips with named controls.
Composition
Compose with FilterPanel: Pair AppliedFilters with the panel; onEdit opens the panel or drawer
<AppliedFilters filters={chips} onEdit={() => setOpen(true)} />
Related components: FilterChips, FilterPanel, FilterBar
Dependencies
What the registry installs alongside this component. Package imports already include these.
npm packages
- class-variance-authority
- clsx
- tailwind-merge
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+: macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA, the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.