Skip to main content

Overview

The Polls plugin handles messages of type extension_poll in category custom. It renders an interactive poll bubble where users can vote on options and see real-time results.
Live Preview — interact with the poll bubble.Open in Storybook ↗

Bubble Rendering

  • Question — displayed as the poll title
  • Options — clickable vote buttons with option text
  • Results — percentage bars showing vote distribution after voting
  • Vote count — total number of votes
  • Lazy-loaded — the bubble component is not included in the initial bundle
The poll data is extracted from the message’s customData:

Context Menu Options

Standard media options: React, Reply, Reply in Thread, Info, Delete, Report, Mark Unread, Message Privately.

Conversation Preview

Returns the poll question text (truncated to 80 characters). Falls back to Poll if no question is found.

CSS Selectors