Override the default one
You can pass a custom close button to the
ToastContainer to replace the default one.
When you use a custom close button, your button will receive a
You need to use it to close the toast.
Define it per toast
Sometimes you don't want to display a close button. It can be removed globally or per toast. Pass
- remove it by default
- remove it per toast
if you removed it globally, you can still choose to display it for a specific toast