Styling
Styling can be done globally via toastOptions
, this way every toast will have the same styling.
You can also use the same props when calling toast
to style a specific toast.
Tailwind CSS
The preferred way to style the toasts with tailwind is by using the unstyled
prop. That will give you an unstyled toast which you can then style with tailwind.
You can do the same when calling toast()
.
Styling per toast type is also possible.
Changing Icons
You can change the default icons using the icons
prop:
You can also set an icon for each toast: