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

    Customizable text labels for the QAPanel component.

    All text displayed in the QAPanel can be customized through this interface. This enables full internationalization (i18n) support.

    import { defaultQAPanelLabels } from '@hiyve/react-collaboration';

    // Spanish labels
    const spanishLabels: Partial<QAPanelLabels> = {
    title: 'Preguntas y Respuestas',
    askPlaceholder: 'Escribe tu pregunta...',
    emptyState: 'No hay preguntas aún',
    };

    <QAPanel labels={spanishLabels} />
    interface QAPanelLabels {
        anonymous: string;
        answer: string;
        answered: string;
        answerPlaceholder: string;
        askPlaceholder: string;
        closeForAnswers: string;
        delete: string;
        emptyState: string;
        openForAnswers: string;
        pin: string;
        questionCount: (count: number) => string;
        sortNewest: string;
        sortUnanswered: string;
        sortVotes: string;
        title: string;
        unknownAuthor: string;
        unpin: string;
        upvote: string;
        upvoted: string;
        voteCount: (count: number) => string;
    }
    Index

    Properties

    anonymous: string

    Label for anonymous checkbox

    answer: string

    Label for answer action

    answered: string

    Badge text for answered questions

    answerPlaceholder: string

    Placeholder text for the answer input field

    askPlaceholder: string

    Placeholder text for the question input field

    closeForAnswers: string

    Label for closing a question to community answers

    delete: string

    Label for delete action

    emptyState: string

    Message shown when there are no questions

    openForAnswers: string

    Label for opening a question for community answers

    pin: string

    Label for pin action

    questionCount: (count: number) => string

    Text for question count in header

    sortNewest: string

    Label for "newest" sort option

    sortUnanswered: string

    Label for "unanswered" sort option

    sortVotes: string

    Label for "most votes" sort option

    title: string

    Header title for the Q&A panel

    unknownAuthor: string

    Fallback name when author name is not available

    unpin: string

    Label for unpin action

    upvote: string

    Tooltip/aria-label for upvote button

    upvoted: string

    Tooltip/aria-label for upvoted state

    voteCount: (count: number) => string

    Text showing vote count (e.g., "1 vote" or "5 votes")