Hello! First of all, THANK YOU this is a great library. 馃憦 X1000
I want to suggest adding support for functions as content. Example:
toast(({ closeToast }) =>
<div>
<p onClick={handlerX}>Do something</p>
<p onClick={closeToast}>Close</p>
</div>
);
I believe this currently returns nothing.
Hello @giocodes,
Glad you like it.
When you call the toast function it returns a toastId. That one can be used to dismiss or to update the toast.
Anyway, I will probably allow this pattern in the next release. I'll let you know as soon as it's available.
Feature released.
Awesome! Thanks
Most helpful comment
Hello @giocodes,
Glad you like it.
When you call the
toastfunction it returns atoastId. That one can be used to dismiss or to update the toast.Anyway, I will probably allow this pattern in the next release. I'll let you know as soon as it's available.