Poll
Voting poll with bars.
A simple voting poll with live result bars.
type · poll
Runs entirely in the shell — no backend needed.
How to use it
Just ask for it in chat — the agent emits this widget and the shell renders it:
Try saying
“a poll asking 'best pizza topping' with pepperoni, mushroom, pineapple”
Example
The agent returns this A2UI component (inside the components array of a /chat response):
poll.json
{
"type": "poll",
"question": "Best pizza topping?",
"options": [
"Pepperoni",
"Mushroom",
"Pineapple"
]
}Properties
| Prop | Type | Description |
|---|---|---|
question | string | Poll question |
options | string[] | Choices |
color | color | Accent color |
Browse the full Widget Index, the Widget Catalog, or learn the A2UI system behind it.