iamhosseindhv/notistack
iamhosseindhv/notistack has 4,080 GitHub stars and 291 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-13 08:44 UTC. Last push 2026-03-31.
Highly customizable notification snackbars (toasts) that can be stacked on top of each other
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalnotistack: Display notifications with call of a function.
Table of Contents
Getting Started
Use your preferred package manager:
npm install notistack
yarn add notistack
Version guide
| Version | Notes |
|---|---|
v3.x.x |
Latest stable release. Standalone (i.e. not dependent on material-ui) |
<= v2.0.8 |
Requires Material-UI v5 as peer dependency. npm install [email protected] |
<= 1.0.10 |
Requires Material-UI <= v4 as peer dependency. npm install notistack@latest-mui-v4 |
How to use
Instantiate a SnackbarProvider component and start showing snackbars: (see docs for a full list of available props)
import { SnackbarProvider, enqueueSnackbar } from 'notistack';
const App = () => {
return (
<div>
<SnackbarProvider />
<button onClick={() => enqueueSnackbar('That was easy!')}>Show snackbar</button>
</div>
);
};
Alternatively, You can use useSnackbar hook to display Snackbars. Just remember to wrap your app inside of a SnackbarProvider to have access to the hook context:
import { SnackbarProvider, useSnackbar } from 'notistack';
// wrap your app
<SnackbarProvider>
<App />
<MyButton />
</SnackbarProvider>
const MyButton = () => {
const { enqueueSnackbar, closeSnackbar } = useSnackbar();
return <Button onClick={() => enqueueSnackbar('I love hooks')}>Show snackbar</Button>;
};
Online demo
Visit the documentation website to see all the examples.
Or play with a minimal working example: codesandbox
Contribution
Open an issue and your problem will be solved.
Author - Contact
Hossein Dehnokhalaji
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
562,231 starspublic-apis/public-apis
A collective list of free APIs
498,629 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
456,371 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,426 stars