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
react-notistack
A beautiful standalone snackbar for react
notistack-mod
Notistack with ability to modify active snackbars.
asma-ui-notistack
## Component composition.
@durrtagnan/notistack
Fork of highly customizable notification snackbars (toasts) that can be stacked on top of each other
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
90.6
Supply Chain
94.4
Quality
76.1
Maintenance
100
Vulnerability
87.6
License
TypeScript (99.35%)
JavaScript (0.65%)
Total Downloads
113,829,258
Last Day
97,821
Last Week
732,003
Last Month
3,261,512
Last Year
38,078,219
3,953 Stars
511 Commits
298 Forks
23 Watching
2 Branches
50 Contributors
Latest Version
3.0.1
Package Id
notistack@3.0.1
Unpacked Size
448.69 kB
Size
125.17 kB
File Count
11
NPM Version
8.1.2
Node Version
16.13.2
Publised On
08 Mar 2023
Cumulative downloads
Total Downloads
Last day
-35.9%
97,821
Compared to previous day
Last week
-9.3%
732,003
Compared to previous week
Last month
-3.1%
3,261,512
Compared to previous month
Last year
27.1%
38,078,219
Compared to previous year
Notistack: Display notifications with call of a function.
Stacking behaviour | Dismiss oldest when reached maxSnack (3 here) |
---|---|
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
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
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
dependency not pinned by hash detected -- score normalized to 0
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
88 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-23
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