✨ What's Changed
- Support for React 19.
- Introducing
toastOptionsproperty:- Change the default font for all toasts using
fontproperty. - Change the default icons for loading, success, warning, error & info with
iconsproperty. - Now you can customize all notifications using your styles with
classNamesorheadless+classNames. - Modify the content of the actions & close buttons with the
defaultActionContent&defaultCloseContentproperty. - 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
toastFontis nowtoastOptions={{ font: '' }}(more information).