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

    Props for the ActivePoll component.

    interface ActivePollProps {
        colors?: Partial<PollsWindowColors>;
        disabled?: boolean;
        icons?: Partial<PollsWindowIcons>;
        isOwner: boolean;
        labels?: Partial<PollsWindowLabels>;
        onEnd?: () => void;
        onShareResults?: () => void;
        onVote: (optionIds: string[]) => void;
        poll: Poll;
        renderProps?: PollsWindowRenderProps;
        styles?: Partial<PollsWindowStyles>;
        userId: string;
        userVote?: UserVote;
    }
    Index

    Properties

    colors?: Partial<PollsWindowColors>

    Custom colors

    disabled?: boolean

    Whether voting is disabled

    icons?: Partial<PollsWindowIcons>

    Custom icons

    isOwner: boolean

    Whether current user is owner

    labels?: Partial<PollsWindowLabels>

    Custom labels

    onEnd?: () => void

    End poll handler (owner only)

    onShareResults?: () => void

    Share results handler (owner only)

    onVote: (optionIds: string[]) => void

    Vote handler

    poll: Poll

    The active poll

    Render props

    styles?: Partial<PollsWindowStyles>

    Custom styles

    userId: string

    Current user ID

    userVote?: UserVote

    User's current vote