Gathering detailed insights and metrics for notistack
Gathering detailed insights and metrics for notistack
Gathering detailed insights and metrics for notistack
Gathering detailed insights and metrics for notistack
@s_mart/notistack
O pacote `@s_mart/notistack` é uma biblioteca de notificações flexível e configurável, baseada no [notistack](https://notistack.com/getting-started), que permite exibir mensagens dinâmicas para o usuário, como avisos, erros, e confirmações. Este pacote fo
react-notistack
A beautiful standalone snackbar for react
notistack-mod
Notistack with ability to modify active snackbars.
asma-ui-notistack
## Component composition.
Highly customizable notification snackbars (toasts) that can be stacked on top of each other
npm install notistack
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (99.35%)
JavaScript (0.65%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
4,011 Stars
515 Commits
300 Forks
22 Watchers
2 Branches
48 Contributors
Updated on Jul 12, 2025
Latest Version
3.0.2
Package Id
notistack@3.0.2
Unpacked Size
448.49 kB
Size
125.12 kB
File Count
11
NPM Version
9.8.1
Node Version
18.18.0
Published on
Jan 18, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Notistack: Display notifications with call of a function.
Use your preferred package manager:
npm install notistack
yarn add notistack
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 notistack@2.0.8 |
<= 1.0.10 | Requires Material-UI <= v4 as peer dependency. npm install notistack@latest-mui-v4 |
Instantiate a SnackbarProvider
component and start showing snackbars: (see docs for a full list of available props)
1import { SnackbarProvider, enqueueSnackbar } from 'notistack'; 2 3const App = () => { 4 return ( 5 <div> 6 <SnackbarProvider /> 7 <button onClick={() => enqueueSnackbar('That was easy!')}>Show snackbar</button> 8 </div> 9 ); 10};
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:
1import { SnackbarProvider, useSnackbar } from 'notistack'; 2 3// wrap your app 4<SnackbarProvider> 5 <App /> 6 <MyButton /> 7</SnackbarProvider> 8 9const MyButton = () => { 10 const { enqueueSnackbar, closeSnackbar } = useSnackbar(); 11 return <Button onClick={() => enqueueSnackbar('I love hooks')}>Show snackbar</Button>; 12};
Visit the documentation website
to see all the examples.
Or play with a minimal working example: codesandbox
Open an issue and your problem will be solved.
Hossein Dehnokhalaji
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 4/30 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
94 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More