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 main action joined to a chevron that opens a menu of related actions.
A main action joined to a chevron that opens the other actions. It composes a kit Button and a kit DropdownMenu. For actions only: FilterButton stays the split control for filters.
An invoice footer: Cancel, and Save invoice with a menu.
Nothing saved yet
The label runs the usual action. The chevron opens the rest and is named after the label, like Save invoice options. It still counts as the one solid primary in the view.
import { SplitButton } from "agentic-ds-kit";From contracts/splitbutton.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 | — | Label of the main action, like Save invoice. |
| onClick | function | No | — | Runs the main action. |
| groups | DropdownMenuGroup[] | Yes | — | The other actions, as kit DropdownMenu groups: [{ heading?, items: [{ id, label, icon?, danger?, disabled? }] }]. |
| onSelect | function | No | — | (id: string) => void. A menu action was picked. |
| menuLabel | string | No | — | Accessible name of the chevron button. Default: the label plus options, like Save invoice options. |
| size | lg | md | sm | No | md | Both parts use control-height: sm 32, md 36, lg 40. The chevron part is a square. |
| appearance | solid | outline | soft | ghost | No | solid | — |
| mode | primary | neutral | danger | No | primary | — |
| disabled | boolean | No | false | Disables both parts. |
| loading | boolean | No | false | The main action is running. Same as Button loading. The menu still opens. |
| iconStart | KitIcon | No | — | Leading icon on the main action. |
| type | button | submit | reset | No | button | Type of the main action button. |
| align | start | end | No | end | Which edge of the chevron the menu lines up with. |
| open | boolean | No | — | Controlled menu state. Leave it out and the menu keeps its own. |
| onOpenChange | function | No | — | (open: boolean) => void. |
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.
Actions or value menu from a button, field, or nav trigger.
Joined row of kit Buttons that share one size and act as one control cluster.
Choose one or several options from a list.