Poll #

Use this component for lightweight opinion blocks, release preference votes, and quick audience checks.

Props #

PropTypeRequiredDescription
questionstringYesPoll question text.
options{ label: string, votes?: number }[]YesPoll answer options.
classNamestringNoWrapper classes.

Live example #

Which release note format do you prefer?

10 votes · 36%

6 votes · 21%

12 votes · 43%

Code #

mdx
<Poll
question="Which release note format do you prefer?"
options='[{"label":"Short bullets","votes":10},{"label":"Detailed narrative","votes":6},{"label":"Hybrid","votes":12}]'
/>