Button
Clickable action control with appearance × mode (plus an optional flat set) and a fixed set of sizes.
Icon-only kit Button: a square action with an icon and a required accessible name.
A kit Button with an icon and no label. It is a typed export of Button, so it looks the same and takes the same appearance, mode and size. The icon and ariaLabel are required.
An invoice toolbar: Download, More and Add invoice.
Each IconButton has an ariaLabel that names the action. Join related icon actions in a ButtonGroup. When the icon alone could be misread, use a Button with a label.
import { IconButton } from "agentic-ds-kit";From contracts/iconbutton.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 |
|---|---|---|---|---|
| icon | KitIcon | Yes | — | A curated Lucide name (PascalCase or kebab-case), a Lucide component, or an element. Same rules as Button iconStart. |
| ariaLabel | string | Yes | — | Names the action, like Download. There is no visible label. |
| size | lg | md | sm | No | md | A square of control-height: sm 32, md 36, lg 40. The same height as a labelled Button, Input and Select of that size. |
| appearance | solid | outline | soft | ghost | No | solid | Same as Button. Toolbars usually use outline or ghost with mode neutral. |
| mode | primary | neutral | danger | No | primary | — |
| flat | boolean | No | false | — |
| shape | default | pill | No | default | — |
| disabled | boolean | No | false | — |
| loading | boolean | No | false | Same as Button loading. The spinner takes the place of the icon. |
| onClick | function | No | — | — |
| type | button | submit | reset | No | button | — |
Clickable action control with appearance × mode (plus an optional flat set) and a fixed set of sizes.
Text that navigates to another page or place: inline inside a sentence, standalone on its own line, or an announcement chip, with an external variant that opens a new tab.
A main action joined to a chevron that opens a menu of related actions.