Interactive · Gutenberg
Reaction Bar block for WordPress
Display emoji reaction counters (GitHub / Notion / Slack style) to show community sentiment on any content.
Get Blockenberg
Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.
What it actually does
Display emoji reaction counters (GitHub / Notion / Slack style) to show community sentiment on any content.
Inspector panels on this block: Settings, Appearance, Reactions (' + a.reactions.length +. Those titles come from index.js, not from a shared template.
Behavior controls: “Layout” options: Pill buttons (GitHub style), Compact row, Cards grid.
Where to find it
Gutenberg inserter → Interactive → search “Reaction Bar” (block name `blockenberg/reaction-bar` in block.json). Style it in the sidebar after insert.
How to use Reaction Bar block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Reaction Bar”, insert it. Category: Interactive.
- Configure inspector controls that exist on this block. Open Settings. Set “Settings — Title”, “Show title”, “Show count”, “Show label”.
- Check the published page. The view script reads HTML data attributes: data-opts, data-rendered. The block editor preview may not run the same view script.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Settings — Title | Text field in the inspector. block.json default: Was this helpful?. Saved as `title`. |
| Show title | On/off toggle in the inspector. On by default. Saved as `showTitle`. |
| Layout | Select control; the chosen value is saved on the block. Options: Pill buttons (GitHub style); Compact row; Cards grid. block.json default: buttons. Saved as `layout`. |
| Show count | On/off toggle in the inspector. On by default. Saved as `showCount`. |
| Show label | On/off toggle in the inspector. On by default. Saved as `showLabel`. |
| Show total | On/off toggle in the inspector. On by default. Saved as `showTotal`. |
| Total label | Text field in the inspector. block.json default: reactions. Saved as `totalLabel`. |
| Typography — Title | Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `titleTypo`. |
| Count / Label | Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `countTypo`. |
| Emoji size | Numeric range control in the inspector. Range 14–40. block.json default: 22. Saved as `emojiSize`. |
| Card radius | Numeric range control in the inspector. Range 0–40. block.json default: 16. Saved as `borderRadius`. |
| Item radius | Numeric range control in the inspector. Range 0–100. block.json default: 100. Saved as `itemRadius`. |
| Emoji | Text field in the inspector. Saved as `reactions`. |
| Label | Text field in the inspector. Saved as `reactions`. |
| Count | Text field in the inspector. Saved as `reactions`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-opts, data-rendered.
When this is the right block
- Display emoji reaction counters (GitHub / Notion / Slack style) to show community sentiment on any content — that is the job of Reaction Bar, not a generic content block.
- Use it when you need the editor control labeled “Settings — Title”, which exists on this block’s inspector.
- It matches pages about reaction, emoji, like.
- Inserter grouping: quizzes, games, and click-to-reveal experiences.
Notes from the implementation
viewScript: this folder’s frontend.js is enqueued on the front end for this block.
FAQ
How do I add the Reaction Bar block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Reaction Bar”. It sits under Interactive. After insert, open Settings and set “Settings — Title”, “Show title”, “Show count”, “Show label”.
What makes Reaction Bar different from other Blockenberg blocks?
Display emoji reaction counters (GitHub / Notion / Slack style) to show community sentiment on any content. Inspector labels on this block include “Settings — Title”, “Show title”, “Show count”, “Show label”.
Is the Reaction Bar Gutenberg block free?
Yes. Reaction Bar ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Reaction Bar to match my theme?
Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Settings, Appearance, Reactions (' + a.reactions.length +).
Related interactive blocks
Interactive Poll
Clickable voting poll with animated results stored per visitor.
2048 Game
The classic sliding-tile 2048 puzzle. Swipe or use arrow keys to merge tiles and reach the 2048 tile.
Analog Clock
A beautiful live analog clock rendered with SVG. Fully customizable: clock style, timezone, colors, size, and optional date/time labels.
Bingo Card
Interactive 5×5 Bingo card with number calling, win detection, and celebration animations.
Content Score
Visual content or SEO scoring card with circular gauge, color-coded criteria rows, and overall grade.
Dice Roller
Interactive dice roller supporting d4, d6, d8, d10, d12, d20 and d100. Roll multiple dice, see individual results, totals, and past roll history.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Reaction Bar from the Gutenberg inserter.