@samline/notify
v2.0.3
Published
A universal toast notification package for React, Vue, Svelte, vanilla JS, and browser/CDN usage.
Maintainers
Readme
Notify
A universal toast notification library. Built for teams who need Sonner quality and API, but require seamless integration across multiple frameworks.
Notify is a toast package inspired by Sonner. The intention is to complement that work and experiment with a shared runtime for React, Vue, Svelte, vanilla JS, and browser/CDN usage.
Table of Contents
Installation
npm install @samline/notifybun add @samline/notifyEntrypoints
| Entrypoint | Use |
| ---------------------------- | --------------------- |
| @samline/notify | Main vanilla API |
| @samline/notify/browser | Browser global bundle |
| @samline/notify/react | React adapter |
| @samline/notify/vue | Vue adapter |
| @samline/notify/svelte | Svelte adapter |
| @samline/notify/styles.css | Shared styles export |
Quick Start
import { createToaster, toast } from '@samline/notify'
createToaster({ position: 'bottom-right', richColors: true })
toast.success('Saved')Documentation
Use the dedicated docs when you want the full API or a framework-specific guide.
License
MIT
