Skip to content
New issue

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

Component inside the toast #11

Open
djcaesar9114 opened this issue Jun 22, 2021 · 1 comment
Open

Component inside the toast #11

djcaesar9114 opened this issue Jun 22, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@djcaesar9114
Copy link

In my app I created an "achievement" feature. Everytime a user gets an achievement, a toast pops up. I'd like to have the image of the achievement in the toast, by using a component.
Could it be possible to have something like this?

              toast("<Achievement type='category' /> Achievement unlocked!", {
                styles: {
                  color: '#fff',
                  backgroundColor: '#0a0',
                },
@Daniel-Knights
Copy link
Owner

This is a good idea. I haven't got much time atm, but I'll look into this eventually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants