Reaction BarPro
Like, comment, repost and share in one pill: icons pop and fill, counts roll in digit by digit.
oxyn add reaction-barThe 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
- 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.
oxyn add reaction-barUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Default
Counts and labels.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Liked
Liked.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Compact
Icon only.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ReactionBar
| Prop | Type | Default | Description |
|---|---|---|---|
reactionsrequired | Vec<Reaction> | — | Reactions and actions. |
compact | bool | Default::default() | Icon-only. |
rule | CountRule | Default::default() | Count rule. |
now | ClockMs | Default::default() | Clock (pop scale). |
on_react | EventHandler<(String, bool)> | — | A reaction was pressed (`id`, now active). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Each reaction is a button |
| EnterorSpace | React |
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
ReactionBarfromoxyn_dioxusand includePRIMITIVES_CSSplus the token stylesheet once. - A GPUI version exists:
ReactionBarElinoxyn_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.