react-hot-toast icon indicating copy to clipboard operation
react-hot-toast copied to clipboard

Add warning message

Open jeevasusej opened this issue 2 years ago • 3 comments

Here I can find success and error but not warning.

  1. Good to have warning type
  2. Good to have header for error message
  3. Good to implement close all error message if we have more than one
  4. 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);

jeevasusej avatar Dec 09 '22 11:12 jeevasusej

+1 for a REAL warning message :)

otherwise:

      toast("Warning", {
        icon: "⚠️",
      });

jack75015 avatar Jan 05 '23 10:01 jack75015

https://github.com/timolins/react-hot-toast/issues/29 @jeevasusej @jack75015

huazhuangnan avatar May 09 '23 06:05 huazhuangnan