Interfaces
Snotify
title
- type:
stringToast title
body
- type:
stringToast content
config
- type: SnotifyToastConfig
Toast configuration object
html
- type:
stringToast html content inside
.snotifyToast__inner
SnotifyButton
text
- type:
stringButton text
action
type:
functionSignature:
( toast: SnotifyToast ) => void
Callback action which will be called on button click.
Receive SnotifyToast
bold
- type:
booleanShould button text be bold or not
className
- type:
stringAdd custom className
SnotifyAnimate
enter
- type:
stringIn animation name
exit
- type:
stringOut animation name
time
- type:
numberAnimation time in ms
SnotifyDefaults
global
- type: SnotifyGlobalConfig
Notifications dock config
toast
- type: SnotifyToastConfig
Toast config
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
- type: SnotifyType
success
- type: SnotifyType
error
- type: SnotifyType
warning
- type: SnotifyType
info
- type: SnotifyType
async
- type: SnotifyType
confirm
- type: SnotifyType
prompt
- type: SnotifyType