Poll Card
Poll card: question and option buttons; after voting, bars fill with percentages and counts and your choice is ringed; time left from a fixed now; a closed state highlights the winner.
Preview
Default theme for new workspaces?
Name for the new reading room?
Install
Pro source requires Pebble Pro. Try the full preview above.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| question | string | — | The question; names the card. |
| options | { id; label; votes }[] | — | Choices with their current vote counts. |
| now | string | — | Local time "YYYY-MM-DDTHH:MM" for time left; the clock is never read. |
| closesAt | string | — | Close time; at or before now the poll shows as closed with the winner. |
| author | { name: string; avatar?: ReactNode } | — | "<name> asked" above the question. |
| defaultVote | string | null | null | Option already voted for (assumed included in its votes). |
| onVote | (id: string | null) => void | — | Called on vote, or null when the vote is taken back. |
| allowChange | boolean | true | Shows Change vote while open. |
| locale | string | — | Number and date formatting. |
Pro component
Try the full preview above. Editable source and build guides require Pebble Pro.
