Button
Clickable action control with appearance × mode (plus an optional flat set) and a fixed set of sizes.
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.
Filter chip for lists and tables. Same chrome as a secondary Button. Applied shows a kit Count in ink. With onToggle the name turns the filter on or off. Not Button. Not Badge.
Status filter with two values applied. Click it to open. Variants shows the other states.
Pass count for applied values. Do not write the number into the label. Compose kit Count; do not invent a split button.
import { FilterButton } from "agentic-ds-kit";From contracts/filterbutton.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 |
|---|---|---|---|---|
| children | string | Yes | — | Filter name, like Status. |
| size | sm | md | lg | No | md | Heights from control-height: sm 32, md 36, lg 40, the same as Button, Input and Select. The chevron part is square. |
| open | boolean | No | false | Options are open. Sets aria-expanded and turns the chevron. |
| disabled | boolean | No | false | — |
| count | number | No | 0 | Applied values, like 3 statuses. Above 0 the filter is set and shows a kit Count. |
| value | string | No | — | The chosen value. Shows as Status: Pending, the name quieter than the value. |
| toggle | on | off | No | — | On or off once a filter is set. Leave it out and a set filter is on. Off keeps the selection but does not apply it: dashed outline on the page canvas fill, muted count. |
| onToggle | function | No | — | () => void. With a filter set, the name part becomes its own button that turns it on or off, and only the chevron opens the options. |
| hasDropdown | boolean | No | true | false: a plain on/off chip with no chevron, for filters with no value to pick. Clicking it calls onToggle. |
| onClick | function | No | — | Opens the options: the whole button when nothing is set, or the chevron once it splits. |
Clickable action control with appearance × mode (plus an optional flat set) and a fixed set of sizes.
A main action joined to a chevron that opens a menu of related actions.
Actions or value menu from a button, field, or nav trigger.
Compact read-only status or category pill set by the system.