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.

Get Blockenberg

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

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Reaction Bar”, insert it. Category: Interactive.
  3. Configure inspector controls that exist on this block. Open Settings. Set “Settings — Title”, “Show title”, “Show count”, “Show label”.
  4. 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

ControlWhat the code does
Settings — TitleText field in the inspector. block.json default: Was this helpful?. Saved as `title`.
Show titleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
LayoutSelect 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 countOn/off toggle in the inspector. On by default. Saved as `showCount`.
Show labelOn/off toggle in the inspector. On by default. Saved as `showLabel`.
Show totalOn/off toggle in the inspector. On by default. Saved as `showTotal`.
Total labelText field in the inspector. block.json default: reactions. Saved as `totalLabel`.
Typography — TitleShared Blockenberg typography popover (family, size, weight, spacing). Saved as `titleTypo`.
Count / LabelShared Blockenberg typography popover (family, size, weight, spacing). Saved as `countTypo`.
Emoji sizeNumeric range control in the inspector. Range 14–40. block.json default: 22. Saved as `emojiSize`.
Card radiusNumeric range control in the inspector. Range 0–40. block.json default: 16. Saved as `borderRadius`.
Item radiusNumeric range control in the inspector. Range 0–100. block.json default: 100. Saved as `itemRadius`.
EmojiText field in the inspector. Saved as `reactions`.
LabelText field in the inspector. Saved as `reactions`.
CountText field in the inspector. Saved as `reactions`.

What the front-end script actually does

When this is the right block

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

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Reaction Bar from the Gutenberg inserter.

Get Blockenberg