Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-react-uikit-v7.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
AI Integration Quick Reference
AI Integration Quick Reference
| Field | Value |
|---|---|
| Plugin ID | polls |
| Package | @cometchat/chat-uikit-react |
| Message Types | extension_poll |
| Message Categories | custom |
| Included by Default | Yes |
| Bubble Component | CometChatPollBubble |
| Conversation Preview | Poll question text (truncated) |
| Context Menu | React, Reply, Reply in Thread, Info, Delete, Report, Mark Unread, Message Privately |
Overview
The Polls plugin handles messages of typeextension_poll in category custom. It renders an interactive poll bubble where users can vote on options and see real-time results.
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
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 toPoll if no question is found.
CSS Selectors
| Target | Selector |
|---|---|
| Bubble root | .cometchat-poll-bubble |
| Question | .cometchat-poll-bubble__question |
| Option | .cometchat-poll-bubble__option |
| Progress bar | .cometchat-poll-bubble__progress |
| Vote count | .cometchat-poll-bubble__vote-count |