Skip to content
Back

Reaction BarPro

Like, comment, repost and share in one pill: icons pop and fill, counts roll in digit by digit.

oxyn add reaction-bar
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

  • Like, comment, repost and share in one pill: icons pop and fill, counts roll in digit by digit.

When not to use

  • How full the context window is: use Context meter instead.
  • Feedback on a reply: use Response feedback instead.
  • A launch countdown with digits that roll per unit, a compact one-line variant, hours absorbing days when days are hidden, and a live state with a pulsing dot at zero: use Countdown instead.

Installation

Reaction Bar 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 reaction-bar

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

Counts and labels.

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

Liked

Liked.

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

Icon only.

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

ReactionBar

PropTypeDefaultDescription
reactionsrequiredVec<Reaction>—Reactions and actions.
compactboolDefault::default()Icon-only.
ruleCountRuleDefault::default()Count rule.
nowClockMsDefault::default()Clock (pop scale).
on_reactEventHandler<(String, bool)>—A reaction was pressed (`id`, now active).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabEach reaction is a button
EnterorSpaceReact

Accessibility

  • A role=group named Reactions; toggles expose aria-pressed and the count is part of each name.

Responsive behaviour

  • compact drops the labels for narrow cards.

Notes for AI

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