Conditionally show closeButton #128
Unanswered
mwilliams1188
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I might have missed this, but does closeButton need to be enabled for all or none of the toasts. Is there a way to manually hide/show when calling toast()?
In reality, I only want to show this for a small subset of notifications, but the only place I set this set is either a true/false on the Toaster itself.
It seems like
classes: { closeButton: 'hidden' },
works, though I wouldn't know how to do this in reverse (default off), and just seems like it would be more intuitive to have an option itself (like on the Toaster) rather than manipulating the classes.Beta Was this translation helpful? Give feedback.
All reactions