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

    Props for the QA component.

    interface QAProps {
        colors?: Partial<QAColors>;
        isOwner: boolean;
        labels?: Partial<QALabels>;
        localUserId: string;
        onAnswerQuestion?: (questionId: string, answer: string) => void;
        onAskQuestion: (text: string) => void;
        onUpvote: (questionId: string) => void;
        questions: Question[];
    }
    Index

    Properties

    colors?: Partial<QAColors>

    Partial color overrides merged with built-in defaults. See QAColors.

    isOwner: boolean

    Whether the local user is the room owner. Owners can answer questions.

    labels?: Partial<QALabels>

    Partial label overrides merged with built-in defaults. See QALabels.

    localUserId: string

    The local user's ID. Used to highlight upvoted questions.

    onAnswerQuestion?: (questionId: string, answer: string) => void

    Called when the owner submits an answer to a question.

    onAskQuestion: (text: string) => void

    Called when the user submits a new question.

    onUpvote: (questionId: string) => void

    Called when the user presses the upvote button on a question.

    questions: Question[]

    Array of questions to display. Typically from useQA.