FilterButton
Filter chip for lists and tables: shows the filter name or its chosen value, opens its options, and turns an applied filter on or off.
A row of filter chips with add, clear all, and an overflow menu when the row is too long.
A row of filter chips, with an optional leading search. Add a filter, open one, or clear them all. Extra chips collapse into a +N menu. On a narrow screen the row can fold into a Filters chip that opens a sheet.
Each chip is a FilterButton. Clear all shows up once a filter has a value or a count.
One chip is FilterButton. The bar owns the row, the overflow menu, Add filter, and Clear all.
import { FilterBar } from "agentic-ds-kit";From contracts/filterbar.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| filters | array | Yes | — | Each item is { id, label, value?, count? }. |
| openId | string | No | — | Which chip's options are open. |
| onFilterClick | function | No | — | (id: string) => void |
| renderOptions | function | No | — | (id: string) => ReactNode. Options for one filter. When set, each chip opens them in a kit Popover anchored to the chip; openId and onFilterClick still say which one is open. |
| onClear | function | No | — | Clear all. Shown when a filter has a value or count. |
| onAdd | function | No | — | Shows Add filter when set. |
| addLabel | string | No | Add filter | — |
| clearLabel | string | No | Clear all | — |
| maxVisible | number | No | — | Extra chips collapse into a +N menu. |
| size | md | sm | lg | No | md | Chips and buttons share the 32 / 36 / 40 control scale. |
| leading | slot | No | — | First in the row, before the chips. A kit Combobox or search Input. |
| renderSheet | function | No | — | () => ReactNode. The same fields stacked for a narrow screen. When set, a bar narrower than --grid-breakpoint-sm shows one Filters chip with the applied count; it opens these in a bottom kit Drawer with Clear all and Apply. |
| onApply | function | No | — | Apply in the sheet. The sheet closes after it. |
| applyLabel | string | No | Apply | — |
| ariaLabel | string | No | Filters | — |
Filter chip for lists and tables: shows the filter name or its chosen value, opens its options, and turns an applied filter on or off.
Framed dataset with search, filters, column settings, and a caption title.
Clickable action control with appearance × mode (plus an optional flat set) and a fixed set of sizes.
Actions or value menu from a button, field, or nav trigger.