FilterChips
Markdown for agentsActive-filter summary with removable chips and a clear-all action.
npx @slipstream-ui/cli@latest add filter-chipsApplied filters
Industry: TechnologyRegion: MountainRevenue: $10M to $50M
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| filters | FilterChip[] | required | Active filters: key, label, optional value and onRemove. |
| onClearAll | () => void | — | Shows a clear-all action when provided. |
| clearLabel | string | 'Clear all' | Label for the clear-all action. |
| emptyLabel | string | — | Shown when there are no active filters. Nothing renders when omitted. |
Accessibility
- Renders a named group (Active filters by default) so the summary has a landmark-like label.
- Each remove control is named Remove <filter>: <value>.
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.