ChemPal Documentation - v1.6.0
    Preparing search index...

    Props for PromptSnackbar.

    • open - Whether the snackbar is shown.
    • message - The line of copy to display.
    • actionLabel - Text of the primary action button.
    • onAction - Invoked when the primary action is clicked.
    • onDismiss - Invoked when the ✕ is clicked.
    • dismissLabel - Accessible label for the ✕.
    • testId / actionTestId / dismissTestId - data-testids for the root and the two controls. Passed explicitly rather than derived, so each caller keeps the ids its tests already target.
    interface PromptSnackbarProps {
        open: boolean;
        message: string;
        actionLabel: string;
        onAction: () => void;
        onDismiss: () => void;
        dismissLabel: string;
        testId: string;
        actionTestId: string;
        dismissTestId: string;
    }
    Index

    Properties

    open: boolean
    message: string
    actionLabel: string
    onAction: () => void
    onDismiss: () => void
    dismissLabel: string
    testId: string
    actionTestId: string
    dismissTestId: string