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

feat: add toast.warn() function

Open JosteinKringlen opened this issue 2 years ago • 15 comments

I saw a couple of comments regarding extending toast with warn and info, and thought I'd give toast.warn() a go :) The warn fn works the same way as error and success, and will by default render a toast with a yellow+black icon for 3 seconds.

I'll probably also take a look at toast.info() after I'm done with warn :)

warn demo

See #29

JosteinKringlen avatar Apr 12 '22 15:04 JosteinKringlen

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/timo/react-hot-toast/GVhL9RwpdADgFZYYz7CxiUs1JTS4
✅ Preview: https://react-hot-toast-git-fork-josteinkringlen-feat-addw-f88f45-timo1.vercel.app

vercel[bot] avatar Apr 12 '22 15:04 vercel[bot]

This would be great if we could have these options soon. Is there any progress here? @timolins

chrisrobbins avatar Jun 08 '22 19:06 chrisrobbins

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react-hot-toast ✅ Ready (Inspect) Visit Preview Jul 17, 2022 at 0:46AM (UTC)

vercel[bot] avatar Jul 17 '22 12:07 vercel[bot]

Any update on this PR ?

qlaffont avatar Oct 25 '22 07:10 qlaffont

@timolins ?

qlaffont avatar Nov 04 '22 15:11 qlaffont

I would be very interested in this feature - will this be merged soon? @timolins

sbahman avatar Jan 17 '23 15:01 sbahman

What it is waiting for? we need this!

asifsaho avatar Feb 08 '23 10:02 asifsaho

Anything on this?

yudielcurbelo avatar Feb 26 '23 02:02 yudielcurbelo

hallo there, any update for this?

nicogulo avatar May 22 '23 15:05 nicogulo

I need this feature, so please merge ASAP

msalahz avatar May 31 '23 13:05 msalahz

It's being a while now.

prince272 avatar Aug 14 '23 04:08 prince272

This is unfortunate, @JosteinKringlen, would you like to fork and make a custom one?

asifsaho avatar Aug 14 '23 06:08 asifsaho

Any update here?

givvemee avatar Oct 24 '23 02:10 givvemee