# Application Chat and Messaging: Poll Message Card

Inline thread poll with vote share bars per option, a check on your vote, voter avatar cluster, total count, and close time.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/poll-message-card
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Chat and Messaging](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/poll-message-card.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-chat-messaging-poll-message-card
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: avatars, button
- Installs to: `@/components/blocks/application-pro/chat-messaging/poll-message-card`

## About this block

Poll Message Card is an inline poll posted into a thread
by Jordan Lee, asking where to hold the Q3 offsite. An
author row and message introduce the question, then an
embedded card lists four options, each with a vote share
fill bar behind the label, a vote count, a percentage,
and a check on your own vote. The card footer shows an
overlapping voter avatar cluster, the running total, the
close time, and Retract vote and View voters actions.

Options are one typed array carrying votes, percent, and
a yourVote flag, so the fill bars and the check on your
choice come straight from the data. The card is a static
blueprint with the totals fixed, so the full poll state
reads clearly in a single screenshot.

## When to use

Reach for this block wherever members vote inside a
conversation, wired to your poll endpoint and a tally
handler that updates counts as votes land. Point Retract
vote at your own ballot and View voters at the per option
breakdown.

A natural flow around it on an Application Pro page:

**Before**

- [Message thread](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging)
- [Navigation](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation)

**After**

- [Message composer](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging)
- [Activity](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity)

## What you can display

One strong use is a scheduling poll before booking a
team event. Other poll variants:

- **Decision vote.** A shortlist of options where the
  channel picks a direction together.
- **Availability check.** Days or times offered so a
  meeting lands when most can attend.
- **Quick reaction.** A yes or no question with two
  options and a fast close time.

> Tip: show the vote share bars even before your own
> vote; the running distribution is what pulls the rest
> of the channel in to cast a ballot.

## More in Application Chat and Messaging

- [Active Call Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/active-call-panel)
- [Channel Directory](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/channel-directory)
- [Channel List Sidebar](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/channel-list-sidebar)
- [Channel Settings Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/channel-settings-panel)
- [Conversation List](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/conversation-list)
- [Dm Thread Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/dm-thread-panel)
- [Emoji Reactions Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/emoji-reactions-blueprint)
- [Member Profile Drawer](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/member-profile-drawer)
- [Mentions Activity Feed](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/mentions-activity-feed)
- [Message Composer](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/message-composer)
- [Message Thread](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/message-thread)
- [Pinned Messages Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/pinned-messages-panel)
- [Scheduled Messages Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/scheduled-messages-panel)
- [Search Messages Results](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/search-messages-results)
- [Shared Files Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/shared-files-panel)
- [Thread Reply Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/thread-reply-panel)
- [Voice Message Thread](https://www.shadcn-ui-blocks.com/blocks/application-pro/chat-messaging/voice-message-thread)
