Skip to content
Back

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 reactions
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

  • 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.

Terminal
oxyn add reactions

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

Bar

Pills with counts and an add button.

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

Picker

The picker tray open.

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

Compact

Compact pills (Oxyn plus).

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

Reactions

PropTypeDefaultDescription
optionsrequiredVec<ReactionOption>—Picker options.
valueVec<ReactionCount>Default::default()Initial pills.
labelString"Reactions"Bar label.
compactboolDefault::default()Small pills.
picker_openboolDefault::default()Picker starts open (rendered inline; nothing covers the page).
on_changeEventHandler<(String, bool)>—Changed (id, reacted).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
EnterorSpaceToggle a pill or open the picker
ArrowsBetween picker options
EscapeClose 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
TransitionDurationEasingReduced motion
Pill in260 mspopfade
Count roll200 msease.outswap
Tray200 msease.outfade

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 Reactions from oxyn_dioxus and include PRIMITIVES_CSS plus the token stylesheet once.
  • A GPUI version exists: ReactionsEl in oxyn_gpui.
  • Props to set first: options.
  • 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