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

    Interface ChoiceButtonsProps

    Props for ChoiceButtons.

    interface ChoiceButtonsProps {
        answer?: string | null;
        choices: readonly string[];
        chosen?: string | null;
        colors?: Partial<GameColors>;
        dense?: boolean;
        disabled?: boolean;
        formatChoice?: (choice: string) => ReactNode;
        labels?: Partial<ChoiceButtonsLabels>;
        onChoose: (choice: string) => void;
        sx?: SxProps<Theme>;
        wrong?: string | null;
    }
    Index

    Properties

    answer?: string | null

    The right answer, shown once the round is settled, the choice made marked wrong beside it if it was another

    choices: readonly string[]
    chosen?: string | null

    The choice made, once one has been

    colors?: Partial<GameColors>
    dense?: boolean

    Smaller buttons

    disabled?: boolean
    formatChoice?: (choice: string) => ReactNode

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

    labels?: Partial<ChoiceButtonsLabels>
    onChoose: (choice: string) => void
    sx?: SxProps<Theme>
    wrong?: string | null

    A choice to mark wrong while the right answer stays hidden: a wrong try with another go to come