solana-app-kit


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

<SectionPoll
  pollData={{
    question: "What's your favorite color?",
    options: ["Red", "Blue", "Green"],
    votes: [10, 15, 8]
  }}
/>