Beautiful, accessible, and performant toast notifications for React.
Flux is a notification system designed for modern web applications. It provides a premium experience with advanced animations, zero-knowledge setup, and a developer-friendly API.
View Documentation · View Demo
- ✨ Pure Performance: Engineered for zero unnecessary re-renders using Zustand.
- 🛡️ Accessible: ARIA-compliant, keyboard navigable, and respects reduced motion.
- 🚀 SSR-Safe: Works flawlessly with Next.js (App & Client boundaries).
- 🎨 Glassmorphism: Sleek, modern design with advanced blur and backdrops.
- ⚡ Interactive: Swipe to dismiss, pause on hover, and lifecycle callbacks.
This repository contains:
app/: The official documentation and landing page.src/flux-toast/: The core library source code.src/flux-cli/: Theflux-initCLI tool for rapid setup.
The easiest way to integrate Flux into your project is using our CLI:
npx flux-init initFor manual installation:
npm install flux-toast motion zustand"use client";
import { toast } from "flux-toast";
function App() {
return (
<button onClick={() => toast.success("It just works!")}>
Show Success
</button>
);
}We welcome contributions! Please see our GitHub Repo for issue tracking.
MIT © Codewithswappy
