✨ What's Changed
- Support for React 19.
- Introducing
toastOptions
property:- Change the default font for all toasts using
font
property. - Change the default icons for loading, success, warning, error & info with
icons
property. - Now you can customize all notifications using your styles with
classNames
orheadless
+classNames
. - Modify the content of the actions & close buttons with the
defaultActionContent
&defaultCloseContent
property. - You can now change the animation of the notification when it closes. Use
animationOnClose
+slide
(default) orswipe
.
- Change the default font for all toasts using
- Exports a CSS file bundled & minified with Lightning CSS. Only use in case the library's styles are not displayed correctly. This resolves the routing issue in Astro with View Transitions (example - more information).
🔎 Breaking Changes
toastFont
is nowtoastOptions={{ font: '' }}
(more information).