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

    Props for AnswerChoices.

    interface AnswerChoicesProps {
        answer?: string | null;
        choices: readonly string[];
        chosen?: string | null;
        colors?: Partial<Pick<DrillColors, "right" | "wrong">>;
        disabled?: boolean;
        formatChoice?: (choice: string) => string;
        labels?: Partial<AnswerChoicesLabels>;
        onChoose: (choice: string) => void;
        sx?: SxProps<Theme>;
    }
    Index

    Properties

    answer?: string | null

    The right answer, shown once the round is answered

    choices: readonly string[]

    The names to choose from, as the question gives them

    chosen?: string | null

    The choice made, once one has been

    colors?: Partial<Pick<DrillColors, "right" | "wrong">>
    disabled?: boolean

    Nothing can be chosen

    formatChoice?: (choice: string) => string

    How a choice is shown on its button (default: as it is)

    labels?: Partial<AnswerChoicesLabels>
    onChoose: (choice: string) => void

    A choice was made

    sx?: SxProps<Theme>