We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
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.
toast
toastId
Anyway, I will probably allow this pattern in the next release. I'll let you know as soon as it's available.
Sorry, something went wrong.
Allow render props(#106)
5f18fd8
Feature released.
Awesome! Thanks
Allow render props(fkhadra#106)
801069f
fkhadra
No branches or pull requests
Hello! First of all, THANK YOU this is a great library. 👏 X1000
I want to suggest adding support for functions as content. Example:
I believe this currently returns nothing.
The text was updated successfully, but these errors were encountered: