Skip to content
Back

Message ActionsPro

The quiet bar under an AI message – copy turns into a check, regenerate spins and unfolds a version switcher, thumbs pop and ask why, read aloud becomes a tiny equalizer.

oxyn add message-actions
Sum up the 3.1 changelog in one sentence.
Sonnet 5.5

Shared projects land in 3.1, search is twice as fast, and PDF exports on Linux work again.

The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • The quiet bar under an AI message: copy, regenerate with versions, rate with a reason, read aloud.

When not to use

  • Prompt composer with model picker, voice input, app connections and approval request: use Chat Composer instead.
  • The model menu of an AI chat: use Model Picker instead.
  • The prompt box for an agent, in six layouts: use Composer instead.

Installation

Message Actions is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add message-actions

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Default

Copy turns into a check, regenerate spins and grows the 2 / 2 switcher, thumbs pop.

Sum up the 3.1 changelog in one sentence.
Sonnet 5.5

Shared projects land in 3.1, search is twice as fast, and PDF exports on Linux work again.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Feedback

Thumbs down: "What went wrong?", reason chips and Send.

Sum up the 3.1 changelog in one sentence.
Sonnet 5.5

Shared projects land in 3.1, search is twice as fast, and PDF exports on Linux work again.

What went wrong?
Marked as bad response. Tell us what went wrong below
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Read aloud

Read aloud: a blue four-bar equalizer, the tooltip says Stop.

Sum up the 3.1 changelog in one sentence.
Sonnet 5.5

Shared projects land in 3.1, search is twice as fast, and PDF exports on Linux work again.

Reading aloud
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Classic

Classic style: the bar and the reasons in their own card, the chosen reason blue.

Sum up the 3.1 changelog in one sentence.
Sonnet 5.5

Shared projects land in 3.1, search is twice as fast, and PDF exports on Linux work again.

What went wrong?
Marked as bad response. Tell us what went wrong below
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Oxyn response feedback

Extended: the response feedback with a note field and a retry.

Tokens minted in the last second of a minute expire before verify runs. Add a 30 s leeway and freeze the clock in a regression test.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

MessageActionBar

PropTypeDefaultDescription
promptStringDefault::default()The user's message (the demo when empty).
modelStringDefault::default()Model name on the model line.
brandStringDefault::default()Model brand for its tile.
versionsVec<String>Default::default()Versions of the answer so far (the demo when empty).
poolVec<String>Default::default()Answers Regenerate draws from, in turn.
feedback_openboolDefault::default()Start with a thumbs-down and the reasons open.
readingboolDefault::default()Start reading aloud.
nowrequiredClockMs—The clock.
styleStringDefault::default()`clean`, `classic`, or empty to follow `data-cstyle`.
on_actionEventHandler<(String, String)>—(`copy` | `regenerate` | `version` | `vote` | `reason` | `send` | `read`, detail).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabCopy, Regenerate, the version arrows, thumbs, Read aloud
EnterorSpacePress the focused action

Accessibility

  • The bar is a toolbar "Message actions"; thumbs and Read aloud are aria-pressed toggles, thumbs down is aria-expanded.
  • Versions read "Version 2 of 3"; a status region announces Copied, Regenerating, the vote and the thanks.
  • Tooltips are decoration (the buttons carry their names); the bar is never faded on touch screens.

Responsive behaviour

  • Fills its container up to 544 px; touch screens get 36 px buttons, below 320 px Send wraps onto its own line.
Edge cases (spec)

Up to 544 px; touch: 36 px buttons, no fade, no hover tooltips; below 320 px Send wraps.

Notes for AI

  • Import MessageActionBar from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: MessageActionsEl in oxyn_gpui.
  • Props to set first: now.
  • It reads a clock (now) for live timers; pass one clock for the whole page rather than one per component.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI