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

    Props for the QuestionItem component.

    interface QuestionItemProps {
        allowAnonymous?: boolean;
        colors: QAPanelColors;
        disabled?: boolean;
        icons: QAPanelIcons;
        isAnswering: boolean;
        isOwner: boolean;
        labels: QAPanelLabels;
        localUserId: string;
        onAnswer: (content: string) => void;
        onDelete?: () => void;
        onToggleAnswering: () => void;
        onToggleOpenForAnswers?: () => void;
        onTogglePin?: () => void;
        onToggleVote: () => void;
        question: Question;
        renderProps?: QAPanelRenderProps;
        styles: QAPanelStyles;
    }
    Index

    Properties

    allowAnonymous?: boolean

    Whether anonymous mode is enabled

    Colors configuration

    disabled?: boolean

    Whether the panel is disabled

    Icons configuration

    isAnswering: boolean

    Whether the owner is currently answering this question

    isOwner: boolean

    Whether the current user is the room owner

    Labels configuration

    localUserId: string

    Local user ID (for checking if user has voted)

    onAnswer: (content: string) => void

    Callback when answer is submitted

    onDelete?: () => void

    Callback to delete the question (optional - hides button when undefined)

    onToggleAnswering: () => void

    Callback to toggle answering mode

    onToggleOpenForAnswers?: () => void

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

    onTogglePin?: () => void

    Callback to pin/unpin the question (optional - hides button when undefined)

    onToggleVote: () => void

    Callback to toggle vote

    question: Question

    The question to display

    renderProps?: QAPanelRenderProps

    Render props for customization

    Styles configuration