Skip to main content
v7

Reactions

Vote on a post, comment or poll in one tap, with counts that roll digit by digit.

Package@g4rcez/componentsSectionDisplay Components

Examples

Uncontrolled

Tap a pill to toggle your own reaction. The add button opens a picker with every option; a pill whose count reaches zero leaves the bar and the rest reflow on a spring.

Icons, components and emoji

Controlled and persisted by the parent

onValueChange receives the next list and the change that produced it. Save it and pass value back, which is how you wire server-backed counts.

Language poll

No changes yet.

When to use Reactions

Use when

Use Reactions for lightweight voting and acknowledgement on comments, posts, polls and release notes. Persist changes in onValueChange and pass value back for server-backed counts.

Avoid when

Avoid it for replies, where a text field fits, for a single like or follow toggle, where ActionSwap fits, and for static counts that people cannot change, where a Tag fits.

Accessibility

The bar is a group and each pill is a toggle button named with its label, count and whether you reacted. The picker is a toolbar with roving tabindex: arrows wrap, Home and End jump, Escape closes it and returns focus to the Add reaction button. A polite status announces every change, and focus moves to a neighbour when the focused pill leaves.