v0.2.2
💥 Breaking Changes
-
The
<ToasterProvider />
component has been removed. To render all toasts, use the<Toaster />
component instead. This change maintains the same API as previous versions. For more information, refer to the documentation.import { Toaster } from '@pheralb/toast'; <Toaster theme="light" maxToast={6} ... />
-
The
useToast
hook has been removed. To render a single toast anywhere in your application, use thetoast()
function. The API remains consistent with previous versions. For more details, see the documentation.import { toast } from '@pheralb/toast'; toast.success({ text: '✨ Hello', });
✨ What's Changed
-
💙 Types:
TheToastPosition
andToastVariant
types are now exported, allowing you to use them in your TypeScript projects for better type safety and autocompletion. -
📚 Documentation Update:
All examples have been updated to reflect the newtoast()
function and<Toaster />
component. -
📄 New Guide:
An Astro framework guide has been added to the documentation. This guide provides step-by-step instructions on how to integrate and use the library within Astro projects.