Interfaces

Snotify

title

  • type: string

    Toast title

body

  • type: string

    Toast content

config

html

  • type: string | SafeHtml

    Toast html content inside .snotifyToast__inner

SnotifyButton

text

  • type: string

    Button text

action

  • type: function

    Signature:

      (
        toast: SnotifyToast
      ) => void
    

Callback action which will be called on button click.
Receive SnotifyToast

bold

  • type: boolean

    Should button text be bold or not

SnotifyAnimate

enter

  • type: string

    In animation name

exit

  • type: string

    Out animation name

time

  • type: number

    Animation time in ms

SnotifyDefaults

global

toast

type

  • type: { [key: SnotifyType]: SnotifyToastConfig }

    Toast type default config
    Example can be found in options defaults

SnotifyStyles

Append snotify-${name} class name to snotify element

simple

success

error

warning

info

async

confirm

prompt

results matching ""

    No results matching ""