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

    Props for the QuestionList component.

    interface QuestionListProps {
        allowAnonymous?: boolean;
        answeringId: string | null;
        colors: QAPanelColors;
        disabled?: boolean;
        icons: QAPanelIcons;
        isOwner: boolean;
        labels: QAPanelLabels;
        localUserId: string;
        onAnswer: (questionId: string, content: string) => void;
        onDelete?: (questionId: string) => void;
        onSetAnsweringId: (questionId: string | null) => void;
        onToggleOpenForAnswers?: (questionId: string) => void;
        onTogglePin?: (questionId: string) => void;
        onToggleVote: (questionId: string) => void;
        questions: Question[];
        renderProps?: QAPanelRenderProps;
        styles: QAPanelStyles;
    }
    Index

    Properties

    allowAnonymous?: boolean

    Whether anonymous mode is enabled

    answeringId: string | null

    ID of the question currently being answered

    Colors configuration

    disabled?: boolean

    Whether the panel is disabled

    Icons configuration

    isOwner: boolean

    Whether the current user is the room owner

    Labels configuration

    localUserId: string

    Local user ID

    onAnswer: (questionId: string, content: string) => void

    Callback when an answer is submitted

    onDelete?: (questionId: string) => void

    Callback to delete a question (optional - hides delete buttons when undefined)

    onSetAnsweringId: (questionId: string | null) => void

    Callback to set the answering question ID

    onToggleOpenForAnswers?: (questionId: string) => void

    Callback to toggle open for answers (optional - hides button when undefined)

    onTogglePin?: (questionId: string) => void

    Callback to pin/unpin a question (optional - hides pin buttons when undefined)

    onToggleVote: (questionId: string) => void

    Callback to toggle vote on a question

    questions: Question[]

    Sorted list of questions to display

    renderProps?: QAPanelRenderProps

    Render props for customization

    Styles configuration