`closeButton` doesn't work on individual toasts via `toastOptions`
MarkLyck opened this issue Β· comments
Describe the feature / bug π:
The documentation shows closeButton
as an option under API Reference
for toast() and says it's default value is false
https://sonner.emilkowal.ski/toast#api-reference
However if I try to add closeButton
in the toast options, I get a TypeScript error saying it's not an available option, and when the toasts show up there's no close button.
the closeButton
does show up when I make it a prop on the Toaster
. But I don't want all of my toasts to have it, only my error toasts, or some specific toasts with long messages.
Steps to reproduce the bug π:
toast.error('example that does not work', { closeButton: true })
This has been fixed in #296, thank you for reporting.