Skip to content

v0.2.2

Compare
Choose a tag to compare
@pheralb pheralb released this 01 Aug 12:01
· 61 commits to main since this release
5810685

💥 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 the toast() 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:
    The ToastPosition and ToastVariant 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 new toast() 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.