Install
Add alert-notify to your project with npm, or drop in the CDN script when you do not use a bundler. CSS ships with the package entry for both paths.
npm
npm install alert-notifyCSS loads with the package entry. You can still import alert-notify/style.css explicitly.
CDN
<script src="https://unpkg.com/alert-notify@3/dist/alert-notify.global.js"></script>The IIFE build injects CSS and exposes AlertNotify on window. See the CDN guide.
Optional peers
- React path:
reactandreact-dom>= 17 - Vue path:
vue>= 3 - Svelte path:
svelte>= 5
Peers are optional. The core vanilla path needs none of them.