MessageActions
Message action bar: copy, retry, edit, regenerate, branch, feedback and more. The component only renders buttons and dispatches oas-action; business actions and conversation state stay in the host.
Basic Usage
Click an action to dispatch oas-action (detail: { key, messageId })
Example
Disabled / Danger
Host disabled, per-action disabled and danger
Example
API
oas-message-actions
Attributes
| Attribute | Description | Type | Default |
|---|---|---|---|
actions | Actions JSON: [{ key, label, title?, disabled?, active?, tone? }] | string | — |
align | Alignment: start (default) / end | string | start |
disabled | Disable every action | boolean | — |
label | Optional aria-label for the action group | string | — |
message-id | Message id echoed in oas-action detail | string | — |
Events
| Event | Description |
|---|---|
oas-action | Dispatched on click, detail: |