ReactionsPro
Acknowledge in one tap: reaction pills whose counts roll, your own highlighted, and a picker tray that grows out of the add button.
oxyn add reactionsThe 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
- Acknowledge a message or an agent reply in one tap; teammates’ reactions on shared runs.
When not to use
- Feedback on a reply: use Response feedback instead.
- A small turning arc for work that runs right now, plus dots, ray and orbit styles: use Spinner instead.
- On or off for things that apply right away: use Switch instead.
Installation
Reactions 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 reactionsUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Bar
Pills with counts and an add button.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Picker
The picker tray open.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Compact
Compact pills (Oxyn plus).
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
Reactions
| Prop | Type | Default | Description |
|---|---|---|---|
optionsrequired | Vec<ReactionOption> | — | Picker options. |
value | Vec<ReactionCount> | Default::default() | Initial pills. |
label | String | "Reactions" | Bar label. |
compact | bool | Default::default() | Small pills. |
picker_open | bool | Default::default() | Picker starts open (rendered inline; nothing covers the page). |
on_change | EventHandler<(String, bool)> | — | Changed (id, reacted). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| EnterorSpace | Toggle a pill or open the picker |
| Arrows | Between picker options |
| Escape | Close the picker |
Accessibility
- group of buttons with aria-pressed and labels like “Love, 4 reactions, including yours”.
- The picker is a labelled toolbar; changes are announced.
From the spec
group bar, labelled pills, toolbar picker with roving focus, polite status for each change.
Motion & interaction
Pills pop in; counts roll; the picker grows out of the add button and options lift on hover.
Timing
| Transition | Duration | Easing | Reduced motion |
|---|---|---|---|
| Pill in | 260 ms | pop | fade |
| Count roll | 200 ms | ease.out | swap |
| Tray | 200 ms | ease.out | fade |
Responsive behaviour
- Pills wrap; the tray grows out of the add button.
Edge cases (spec)
A pill that leaves while focused hands focus back to the bar; zero-count pills never render.
Notes for AI
- Import
Reactionsfromoxyn_dioxusand includePRIMITIVES_CSSplus the token stylesheet once. - A GPUI version exists:
ReactionsElinoxyn_gpui. - Props to set first:
options. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.