Poll #
Use this component for lightweight opinion blocks, release preference votes, and quick audience checks.
Props #
| Prop | Type | Required | Description |
|---|---|---|---|
question | string | Yes | Poll question text. |
options | { label: string, votes?: number }[] | Yes | Poll answer options. |
className | string | No | Wrapper classes. |
Live example #
Which release note format do you prefer?
10 votes · 36%
6 votes · 21%
12 votes · 43%
Code #
mdx
<Pollquestion="Which release note format do you prefer?"options='[{"label":"Short bullets","votes":10},{"label":"Detailed narrative","votes":6},{"label":"Hybrid","votes":12}]'/>