Hiyve Components - v1.0.0
    Preparing search index...

    Represents a single option in a poll.

    const option: PollOption = {
    id: 'opt-1',
    text: 'Option A',
    votes: ['user-1', 'user-2'],
    };
    interface PollOptionType {
        id: string;
        text: string;
        voteCount?: number;
        votes: string[];
    }
    Index

    Properties

    Properties

    id: string

    Unique identifier for the option

    text: string

    Option text displayed to users

    voteCount?: number

    Optional vote count for anonymous polls (replaces votes array)

    votes: string[]

    Array of user IDs who voted for this option (or count if anonymous)