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

    Interface DeckScoreCardProps

    Props for DeckScoreCard.

    interface DeckScoreCardProps {
        actions?: ReactNode;
        colors?: Partial<GameColors>;
        extraActions?: ReactNode;
        labels?: Partial<DeckScoreCardLabels>;
        onAgain?: () => void;
        onAnother?: () => void;
        onContinue?: () => void;
        primary?: "again" | "continue";
        score?: Score;
        summary: DeckSummary;
        sx?: SxProps<Theme>;
    }
    Index

    Properties

    actions?: ReactNode

    Buttons of your own in place of the usual row

    colors?: Partial<GameColors>
    extraActions?: ReactNode

    Buttons of your own after the usual ones, in the same row (outlined, as the others beside the main one)

    labels?: Partial<DeckScoreCardLabels>
    onAgain?: () => void

    Play again: the button shows when given

    onAnother?: () => void

    A new deck: the button, with a shuffle, shows when given

    onContinue?: () => void

    Move on — to what comes next, or back to where the deck was started from: the button, with a forward arrow, shows when given

    primary?: "again" | "continue"

    Which button is the main, filled one (default: 'continue' when onContinue is given, else 'again'); the others are outlined

    score?: Score

    Points and stars, shown when given

    summary: DeckSummary
    sx?: SxProps<Theme>