functions
Function: default()
default(
__namedParameters
):Element
solana-app-kit / components/thread/sections/SectionPoll / default
Function: default()
default(
__namedParameters
):Element
Defined in: src/components/thread/sections/SectionPoll.tsx:42
A component that renders a poll in a post section
Parameters
__namedParameters
SectionPollProps
Returns
Element
Component
Description
SectionPoll displays a poll with a question and multiple options in a post. Each option shows the number of votes it has received, and the entire poll is displayed in a styled container with a light background.
Features:
- Question display
- Multiple options support
- Vote count display
- Consistent styling
- Missing data handling
Example
Was this page helpful?