Skip to content

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 })

Waiting

Disabled / Danger ​

Host disabled, per-action disabled and danger

API ​

oas-message-actions ​

Attributes ​

AttributeDescriptionTypeDefault
actionsActions JSON: [{ key, label, title?, disabled?, active?, tone? }]string—
alignAlignment: start (default) / endstringstart
disabledDisable every actionboolean—
labelOptional aria-label for the action groupstring—
message-idMessage id echoed in oas-action detailstring—

Events ​

EventDescription
oas-actionDispatched on click, detail:

Released under the MIT OR Apache-2.0 License.