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

    Custom icons for the QAPanel component.

    All icons in the QAPanel can be replaced with custom React nodes. This allows using different icon libraries or custom SVGs.

    import { FaQuestionCircle, FaThumbsUp } from 'react-icons/fa';

    const customIcons: Partial<QAPanelIcons> = {
    qa: <FaQuestionCircle />,
    upvote: <FaThumbsUp />,
    };

    <QAPanel icons={customIcons} />
    interface QAPanelIcons {
        answer: ReactNode;
        closeForAnswers: ReactNode;
        delete: ReactNode;
        openForAnswers: ReactNode;
        pin: ReactNode;
        qa: ReactNode;
        send: ReactNode;
        sort: ReactNode;
        unpin: ReactNode;
        upvote: ReactNode;
        upvoted: ReactNode;
    }
    Index

    Properties

    answer: ReactNode

    Answer icon

    closeForAnswers: ReactNode

    Close for answers icon

    delete: ReactNode

    Delete button icon

    openForAnswers: ReactNode

    Open for answers icon

    pin: ReactNode

    Pin button icon

    qa: ReactNode

    Q&A header icon

    send: ReactNode

    Send/submit button icon

    sort: ReactNode

    Sort dropdown icon

    unpin: ReactNode

    Unpin button icon

    upvote: ReactNode

    Upvote button icon (not upvoted)

    upvoted: ReactNode

    Upvote button icon (already upvoted)