Success
Success is a type of toast which represents the success status of any tasks.
Syntax
Parameters
- msg: Any valid message string value to display on toast.
- options: Options is a javascript object used to add additional information & customization options.
- title: Any valid title string value show at the top of toast.
- icon: Any
string,emoji,image,svgorjsxelement to show at the place of icon. - style: Any valid CSS property to apply on toast.
- toastDuration: Any valid number between 1-15.
Usage
Just import usePings hook into any compenent and your compenent is now ready to produce toasts.