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-actionsShared projects land in 3.1, search is twice as fast, and PDF exports on Linux work again.
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.
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.
oxyn add message-actionsUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Default
Copy turns into a check, regenerate spins and grows the 2 / 2 switcher, thumbs pop.
Shared projects land in 3.1, search is twice as fast, and PDF exports on Linux work again.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Feedback
Thumbs down: "What went wrong?", reason chips and Send.
Shared projects land in 3.1, search is twice as fast, and PDF exports on Linux work again.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Read aloud
Read aloud: a blue four-bar equalizer, the tooltip says Stop.
Shared projects land in 3.1, search is twice as fast, and PDF exports on Linux work again.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Classic
Classic style: the bar and the reasons in their own card, the chosen reason blue.
Shared projects land in 3.1, search is twice as fast, and PDF exports on Linux work again.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
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 preview is free. Pro opens the code of every Pro component, screen and template.
API reference
MessageActionBar
| Prop | Type | Default | Description |
|---|---|---|---|
prompt | String | Default::default() | The user's message (the demo when empty). |
model | String | Default::default() | Model name on the model line. |
brand | String | Default::default() | Model brand for its tile. |
versions | Vec<String> | Default::default() | Versions of the answer so far (the demo when empty). |
pool | Vec<String> | Default::default() | Answers Regenerate draws from, in turn. |
feedback_open | bool | Default::default() | Start with a thumbs-down and the reasons open. |
reading | bool | Default::default() | Start reading aloud. |
nowrequired | ClockMs | — | The clock. |
style | String | Default::default() | `clean`, `classic`, or empty to follow `data-cstyle`. |
on_action | EventHandler<(String, String)> | — | (`copy` | `regenerate` | `version` | `vote` | `reason` | `send` | `read`, detail). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Copy, Regenerate, the version arrows, thumbs, Read aloud |
| EnterorSpace | Press 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
MessageActionBarfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
MessageActionsElinoxyn_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.