Skip to content
ghostui

Message Actions

Attach only the actions and source list that the message can support.

Preview

Move the rollout to Friday. Staging passed the retry check, and Priya owns the final coverage review.

Design guidance

Render an action only when its callback exists. Copy is available for every message and reports clipboard success or failure. Keep sources in the caller-owned CitationList and pass that list to the footer.

Installation

Install

Basic usage

Structures

MessageActions composes IconButton, ButtonGroup, and ButtonGroupSeparator. MessageActionMenu wraps the caller's message content in canonical ContextMenu behavior. MessageEdit owns only a local draft. MessageDelivery displays only supplied runtime receipts.

Examples

Own user message

Hover, focus, or tap a non-interactive message to reveal its actions and timestamp.

Friday works. I’ll confirm with support.

Context actions

Right-click or use the platform context-menu gesture on the message. The menu includes only supplied callbacks.

Move the rollout to Friday.

Edit and resubmit

Cancel restores caller-owned message state. A rejected submit keeps the draft available for correction.

Read receipt

Supply recipient timestamps from the runtime. A recipient without readAt is reported as not read.

Friday works for the rollout.

API reference

MessageActions

MessageEdit and MessageDelivery

Accessibility

Icon controls have action-specific labels. Copy feedback is announced. Context actions use the canonical ContextMenu keyboard and pointer behavior. Receipt details open in a Popover with an arrow and name recipients whose readAt is missing as not read.