Patterns
FilterPanel
Side panel of grouped filters for advanced filtering. Opens from FilterBar's “More filters”; applies on “Apply filters”.
When to use
Many grouped filters in a side panel for data-heavy pages.
Use something else
A few filters → FilterBar.
Do
- Group filters with titles and counts; put Apply in the footer.
Don't
- Don't apply filters on every click and also show an Apply button; pick one model.
Props
| Prop | Type |
|---|---|
groups required | Array<{ id: string; title: string; options: string[]; selected?: string[] }> |
title | string |
applyLabel | string |
Use
const { FilterPanel } = window.Tessera;
const el = React.createElement(FilterPanel, { /* props */ });