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-filters

Usage

import { AppliedFilters } from "@/components/ui/applied-filters";

<AppliedFilters filters={filters} onRemove={remove} onClear={clear} onAdd={openPicker} />

API reference

PropTypeDefaultDescription
filters{ id, field, value }[]requiredWhat is filtered and by which value.
onRemove(id: string) => voidrequiredCalled when a chip is removed.
onClear / onAdd() => voidShow the clear-all and filter buttons.

View the source on GitHub