Content · Gutenberg
Chat Bubbles block for WordPress
Decorative chat-conversation UI — perfect for testimonials in a messaging format, product walkthroughs, or dialogue-based storytelling.
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
Decorative chat-conversation UI — perfect for testimonials in a messaging format, product walkthroughs, or dialogue-based storytelling.
Inspector panels on this block: Chat Style, Messages. Those titles come from index.js, not from a shared template.
Behavior controls: “Style preset” options: Modern (rounded, colored right), Classic (minimal borders), Dark (dark background); “Side” options: Left, Right.
Where to find it
Gutenberg inserter → Content → search “Chat Bubbles” (block name `blockenberg/chat-bubble` in block.json). Style it in the sidebar after insert.
How to use Chat Bubbles block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Chat Bubbles”, insert it. Category: Content.
- Configure inspector controls that exist on this block. Open Chat Style. Set “Style preset”, “Max width (px)”, “Bubble border radius (px)”, “Container border radius (px)”.
- Check the published page. An IntersectionObserver starts work when the block enters the viewport. The block editor preview may not run the same view script.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Style preset | Select control; the chosen value is saved on the block. Options: Modern (rounded, colored right); Classic (minimal borders); Dark (dark background). block.json default: modern. Saved as `chatStyle`. |
| Max width (px) | Numeric range control in the inspector. Range 280–900. block.json default: 560. Saved as `maxWidth`. |
| Bubble border radius (px) | Numeric range control in the inspector. Range 0–32. block.json default: 18. Saved as `bubbleRadius`. |
| Container border radius (px) | Numeric range control in the inspector. Range 0–32. block.json default: 16. Saved as `containerRadius`. |
| Message gap (px) | Numeric range control in the inspector. Range 4–40. block.json default: 12. Saved as `messageGap`. |
| Avatar size (px) | Numeric range control in the inspector. Range 24–64. block.json default: 36. Saved as `avatarSize`. |
| Show avatars | On/off toggle in the inspector. On by default. Saved as `showAvatars`. |
| Show sender names | On/off toggle in the inspector. On by default. Saved as `showSenderName`. |
| Show timestamps | On/off toggle in the inspector. On by default. Saved as `showTimestamp`. |
| Typing indicator at end | On/off toggle in the inspector. On by default. Saved as `typingIndicator`. |
| Show container border | On/off toggle in the inspector. On by default. Saved as `showBorder`. |
| Left bubble background | Color control in the inspector. block.json default: #f3f4f6. Saved as `leftBubbleBg`. |
| Left bubble text | Color control in the inspector. block.json default: #111827. Saved as `leftBubbleColor`. |
| Right bubble background | Color control in the inspector. block.json default: #6c3fb5. Saved as `rightBubbleBg`. |
| Right bubble text | Color control in the inspector. block.json default: #ffffff. Saved as `rightBubbleColor`. |
| Avatar background | Color control in the inspector. block.json default: #e5e7eb. Saved as `avatarBg`. |
| Chat container background | Color control in the inspector. block.json default: #ffffff. Saved as `chatBg`. |
| Timestamp color | Color control in the inspector. block.json default: #9ca3af. Saved as `timeColor`. |
| Container border color | Color control in the inspector. block.json default: #e5e7eb. Saved as `borderColor`. |
| Section background | Color control in the inspector. Saved as `bgColor`. |
| Padding top (px) | Numeric range control in the inspector. Range 0–200. block.json default: 32. Saved as `paddingTop`. |
| Padding bottom (px) | Numeric range control in the inspector. Range 0–200. block.json default: 32. Saved as `paddingBottom`. |
| Side | Select control; the chosen value is saved on the block. Options: Left; Right. |
| Sender name | Text field in the inspector. |
| Initials (fallback avatar) | Text field in the inspector. |
| Message text | Multiline text field in the inspector. |
| Timestamp | Text field in the inspector. |
What the front-end script actually does
- An IntersectionObserver starts work when the block enters the viewport.
When this is the right block
- Decorative chat-conversation UI — perfect for testimonials in a messaging format, product walkthroughs, or dialogue-based storytelling — that is the job of Chat Bubbles, not a generic content block.
- Use it when you need the editor control labeled “Style preset”, which exists on this block’s inspector.
- It matches pages about chat, bubble, message.
- Inserter grouping: articles, cards, lists, and long-form layouts.
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 Chat Bubbles block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Chat Bubbles”. It sits under Content. After insert, open Chat Style and set “Style preset”, “Max width (px)”, “Bubble border radius (px)”, “Container border radius (px)”.
What makes Chat Bubbles different from other Blockenberg blocks?
Decorative chat-conversation UI — perfect for testimonials in a messaging format, product walkthroughs, or dialogue-based storytelling. Inspector labels on this block include “Style preset”, “Max width (px)”, “Bubble border radius (px)”, “Container border radius (px)”.
Is the Chat Bubbles Gutenberg block free?
Yes. Chat Bubbles ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Chat Bubbles 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: Chat Style, Messages).
Related content blocks
Alert / Notice
Info, success, warning or error notice block with icon, title and body text. Pure CSS — zero JS.
Blockquote / Pull Quote
Stylish quote block with accent line or decorative marks, author name, role and photo.
Accordion
Collapsible accordion panels for FAQ, features, and more.
Accordion Table
A data table where each row expands on click to reveal rich detail content — specs, bullet points, sub-data, or notes. Perfect for pricing tiers, product specs, API docs, and comparison matrices.
Big Stat
Display a single large impactful statistic with prefix, suffix, label, and multiple visual styles.
Callout
Highlighted panel for tips, warnings or success messages with icon, title and dismissible option.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Chat Bubbles from the Gutenberg inserter.