Components › Blocks
Applied filters
The filters in effect as removable chips, with clear all and a button to add more.
Installation
npx plankui@latest add applied-filtersUsage
import { AppliedFilters } from "@/components/ui/applied-filters";
<AppliedFilters filters={filters} onRemove={remove} onClear={clear} onAdd={openPicker} />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| filters | { id, field, value }[] | required | What is filtered and by which value. |
| onRemove | (id: string) => void | required | Called when a chip is removed. |
| onClear / onAdd | () => void | Show the clear-all and filter buttons. |