react-hot-toast
react-hot-toast copied to clipboard
Add warning message
Here I can find success and error but not warning.
- Good to have warning type
- Good to have header for error message
- Good to implement close all error message if we have more than one
- Good to pass additional values with success, warning, custom etc.. If we implement our own wrapper, This will be useful. Now I am sending additional params like
toast.success('This is success message', {
heading: 'Heading text',
} as any);
toast('This is warning message', { type: 'warning' } as any);
+1 for a REAL warning message :)
otherwise:
toast("Warning", {
icon: "⚠️",
});
https://github.com/timolins/react-hot-toast/issues/29 @jeevasusej @jack75015