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
Total
112,110,453
Last Day
24,440
Last Week
800,171
Last Month
3,308,852
Last Year
37,655,257
3,945 Stars
511 Commits
298 Forks
23 Watching
2 Branches
50 Contributors
Updated on 07 Dec 2024
Minified
Minified + Gzipped
TypeScript (99.35%)
JavaScript (0.65%)
Cumulative downloads
Total Downloads
Last day
14.6%
24,440
Compared to previous day
Last week
7.8%
800,171
Compared to previous week
Last month
-6%
3,308,852
Compared to previous month
Last year
26.9%
37,655,257
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
86 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-02
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