wizicon
v0.1.1
Published
The favicon is the toast. Dynamic favicons for React, Next.js, and the browser.
Downloads
227
Maintainers
Readme
wizicon
The favicon is the toast.
import { wizicon } from "wizicon";
wizicon.loading(); // animated spinner ring
wizicon.success(); // green check, auto-restores
wizicon.error(); // red X, auto-restores
wizicon.notify(3); // unread badge with count
wizicon.set({ emoji: "🎉" });
wizicon.dismiss(); // restore original
await wizicon.promise(uploadFile());Zero deps. Works in any browser. SSR-safe (all methods are no-ops on the server). Auto-detects your existing favicon, or pass one explicitly:
wizicon.configure({ logo: "/logo.svg", theme: "auto" });