@vicinae/api
    Preparing search index...

    Interface ActionOptions

    The options to create a Toast Action.

    interface ActionOptions {
        onAction: (toast: Toast) => void;
        shortcut?: Keyboard.Shortcut;
        title: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    onAction: (toast: Toast) => void

    A callback called when the action is triggered.

    shortcut?: Keyboard.Shortcut

    The keyboard shortcut for the action.

    title: string

    The title of the action.