ButtonGroup
Joined row of kit Buttons that share one size and act as one control cluster.
The compact action row on a chat message: copy, retry or edit, thumbs up / down with reasons, and a More menu. Icon Buttons with Tooltips.
The action row on a chat message. Not ButtonGroup. Not DropdownMenu alone.
Copy swaps to Copied for 2s; thumbs toggle; a thumbs down offers reasons.
MessageActions sits under a message. Every icon has a name and a Tooltip. With visible="hover" it shows on hover or keyboard focus of the message (data-message-actions-host).
import { MessageActions } from "agentic-ds-kit";From contracts/messageactions.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 |
|---|---|---|---|---|
| label | string | No | Message actions | — |
| onCopy | function | No | — | — |
| copied | boolean | No | false | Shows Copied in place of copy. |
| onRetry | function | No | — | — |
| retrying | boolean | No | false | — |
| onEdit | function | No | — | User messages. |
| onFeedback | function | No | — | ("up" | "down" | null) => void. Shows thumbs. |
| feedback | up | down | null | No | null | — |
| thanksText | string | No | Thanks, noted | After a thumbs up, or after a reason is picked: "Thanks, noted: <reason>". |
| reasons | string[] | No | — | Toggle Buttons (sm) after a thumbs down, in a group named "What went wrong?". |
| onReason | function | No | — | (reason) => void |
| selectedReason | string | No | — | The picked reason (controlled). Its Button is pressed. |
| moreItems | array | No | — | kit DropdownMenu items. |
| onAction | function | No | — | (id) => void |
| visible | always | hover | No | always | hover: shown on hover or focus of the row or of an ancestor with data-message-actions-host. |
| disabled | boolean | No | false | Message still streaming. |