Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
material-react-toastify
Advanced tools
Readme
This is a fork from react-toastify v9.1.1, all its props and documentation will work with this module too.
🎉 material-react-toastify allows you to add notification snackbars to your app with ease. No need to maintain multiple states anymore!
This component has been made in compliance with Material.io design spec-sheet. You can check it out here
$ npm install --save material-react-toastify
$ yarn add material-react-toastify
onOpen
and onClose
hooks. Both can access the props passed to the react component rendered inside the toastnprogress
😲import React from 'react';
import { ToastContainer, toast } from 'material-react-toastify';
import 'material-react-toastify/dist/ReactToastify.css';
function App() {
const notify = () => toast('Wow so easy!');
return (
<div>
<button onClick={notify}>Notify!</button>
<ToastContainer />
</div>
);
}
toast("It's that easy");
toast.success('to create');
toast.error('different types');
toast.dark('of notifications.');
toast.warning('You just need to');
toast.info('execute one of these functions');
A demo is worth a thousand words
Here's the documentation to get you started !
**I edited the original documentation to change it according to material-react-toastify
You can also check-out the original react-toastify documentation here for further reference.
Show your ❤️ and support by giving a ⭐. Any suggestions are welcome! Take a look at the contributing guide.
You can also find me on reactiflux. My pseudo is shivanshBTW.
This project exists thanks to all the people who contribute. [Contribute]. [Find all the contributors]
Licensed under MIT
FAQs
React Material-UI Snackbars made easy
The npm package material-react-toastify receives a total of 1,094 weekly downloads. As such, material-react-toastify popularity was classified as popular.
We found that material-react-toastify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.