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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identifiable Toaster #404

Open
shkumbinhasani opened this issue Apr 15, 2024 · 0 comments
Open

Identifiable Toaster #404

shkumbinhasani opened this issue Apr 15, 2024 · 0 comments

Comments

@shkumbinhasani
Copy link

Describe the feature 馃摑:

This feature would include identifier to a Toaster, so that the toast function can know in what Toaster to run,

eg: In a dialog i have to put a toaster inside a dialog with a backdrop blur background, it shows behind the backdrop, and due to the dialog behaviour it shows it behind the dialog.

Even if its fixable I stil quite like the toast to be relative to the dialog, So I that that a good way to do this would be Identifiable Toaster. where the syntax would look something like this.

<Toaster id="root-toaster" />
<Toaster id="dialog-toaster" />
toast('This shows on the root', {
    toastFor: "root-toaster"
})
toast('This shows on the root', {
    toastFor: "dialog-toaster"
})

image

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

No branches or pull requests

1 participant