platform-bible-react
    Preparing search index...

    Type Alias UndoRedoButtonsProps

    type UndoRedoButtonsProps = {
        canRedo?: boolean;
        canUndo?: boolean;
        className?: string;
        localizedStrings?: UndoRedoButtonsLocalizedStrings;
        onRedoClick?: () => void;
        onUndoClick: () => void;
        showKeyboardShortcuts?: boolean;
        variant?: ButtonProps["variant"];
    }
    Index

    Properties

    canRedo?: boolean

    Whether the Redo button is enabled.

    canUndo?: boolean

    Whether the Undo button is enabled.

    className?: string

    CSS class name for the buttons. Defaults to "tw-h-6 tw-w-6".

    Localized strings for button tooltips. Falls back to the key itself if not provided.

    onRedoClick?: () => void

    Function to call when Redo is clicked. If undefined, the Redo button is not rendered.

    onUndoClick: () => void

    Function to call when Undo is clicked.

    showKeyboardShortcuts?: boolean

    Whether to show OS-specific keyboard shortcut hints in the tooltips. Defaults to true. If being used with an Editorial component, wrap it in EditorKeyboardShortcuts to make the shortcuts functional.

    Variant for the buttons. Defaults to "ghost".