ToastOptions: { duration?: number; intent?: ToastIntent }

Options for an individual toast shown through ToastApi.

Type declaration

  • Optionalduration?: number

    Auto-dismiss delay in ms. 0 keeps the toast until it's dismissed.

  • Optionalintent?: ToastIntent

    Semantic intent of the toast; sets data-hl-intent and, for danger, role="alert".