ToggleFilterButton
A one-click button that merges a filter value into the list filter and removes it when clicked again.
Installation
pnpm dlx shadcn@latest add @chelone/toggle-filter-buttonA one-click button that merges a filter value into the list filter and removes it when clicked again.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | |
| label | ReactNode | — | A string is translated with itself as the fallback; an element renders as it is. |
| size | "default" | "sm" | "lg" | "icon" | — | |
| value | FilterPayload | — | The filter this button sets, and removes again once the list holds it. |