Skip to content

Questions About Toast Placement and Meta Properties #3073

Answered by cschroeter
carlosyan1807 asked this question in Q&A
Discussion options

You must be logged in to vote

@carlosyan1807

Thanks for reaching out!

For your first question—yes, your assumption is correct. You need to create a Toaster for each position. The challenge lies not only in the design but also in avoiding cluttering the DOM with separate render nodes for each position. We also factored in typical usage patterns, as most apps render toasts in a single position for a more consistent user experience.

As for your second question—I’ve encountered this myself. The best solution is to use a generic to properly type your metadata. However, since this isn’t currently planned, your workaround should be fine for now.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by carlosyan1807
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants