react-toastify
TypeScript icon, indicating that this package has built-in type declarations

11.0.5 • Public • Published

React-Toastify

Financial Contributors on Open Collective React-toastify CI npm npm NPM Coveralls github

React toastify

stacked

custom-style

🎉 React-Toastify allows you to add notifications to your app with ease.

Installation

$ npm install --save react-toastify
$ yarn add react-toastify
  import React from 'react';

  import { ToastContainer, toast } from 'react-toastify';
  
  function App(){
    const notify = () => toast("Wow so easy!");

    return (
      <div>
        <button onClick={notify}>Notify!</button>
        <ToastContainer />
      </div>
    );
  }

Documentation

Check the documentation to get you started!

Features

  • Easy to set up for real, you can make it work in less than 10sec!
  • Super easy to customize
  • RTL support
  • Swipe to close 👌
  • Can choose swipe direction
  • Super easy to use an animation of your choice. Works well with animate.css for example
  • Can display a react component inside the toast!
  • Has onOpen and onClose hooks. Both can access the props passed to the react component rendered inside the toast
  • Can remove a toast programmatically
  • Define behavior per toast
  • Pause toast when the window loses focus 👁
  • Fancy progress bar to display the remaining time
  • Possibility to update a toast
  • You can control the progress bar a la nprogress 😲
  • You can limit the number of toast displayed at the same time
  • Dark mode 🌒
  • Pause timer programmaticaly
  • Stacked notifications!
  • And much more !

Demo

A demo is worth a thousand words

Contribute

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 Fadi.

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

Release Notes

You can find the release note for the latest release here

You can browse them all here

License

Licensed under MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
11.0.5601,904latest
11.0.1-react172,993v11-react17
11.0.4-016next
9.1.2-rsc10rsc-test
10.0.0-beta.18beta
10.0.2-debug4debug
8.0.2-with-side-effects3test
9.0.7-fix-autoclose-22fix-autoclose-2
9.0.7-fix-autoclose-12fix-autoclose-1
9.0.6-vite-12vite-debug-0.1

Version History

VersionDownloads (Last 7 Days)Published
11.0.5601,904
11.0.41,843
11.0.4-016
11.0.358,457
11.0.233,868
11.0.1-react172,993
11.0.11,072
11.0.07,626
11.0.0-030
10.0.7-5150
10.0.7-414
10.0.7-33
10.0.7-22
10.0.7-13
10.0.7-027
10.0.6355,486
10.0.5226,864
10.0.433,077
10.0.31,455
10.0.2-debug4
10.0.2165
10.0.1333
10.0.05,158
10.0.0-beta.18
9.1.3486,273
9.1.2-rsc10
9.1.222,059
9.1.172,783
9.1.01,095
9.0.826,432
9.0.7-fix-autoclose-22
9.0.7-fix-autoclose-12
9.0.76,008
9.0.6-vite-12
9.0.682
9.0.54,423
9.0.42,255
9.0.357,943
9.0.2227
9.0.14,964
9.0.03,138
9.0.0-rc-2121
9.0.0-rc-13
9.0.0-POC67
8.2.0154,908
8.1.13,008
8.1.037,704
8.0.37,228
8.0.2-with-side-effects3
8.0.26,055
8.0.126
8.0.03,305
8.0.0-rc14
7.0.490,813
7.0.313,283
7.0.242
7.0.181
7.0.0399
7.0.0-rc33
7.0.0-rc23
7.0.0-rc13
6.2.047,176
6.1.03,121
6.0.93,547
6.0.89,986
6.0.73
6.0.6819
6.0.53,215
6.0.4146
6.0.33
6.0.269
6.0.18
6.0.01,523
6.0.0-rc.36
6.0.0-rc.2-1210
6.0.0-rc.23
6.0.0-rc.12
6.0.0-rc.02
5.5.062,444
5.4.13,130
5.4.06,666
5.3.23,625
5.3.1556
5.3.034
5.2.1569
5.2.0206
5.1.1113
5.1.02,874
5.0.131
5.0.1-rc.117
5.0.039
5.0.0-rc.674
5.0.0-rc.53
5.0.0-rc.43
5.0.0-rc.3479
5.0.0-rc.23
5.0.0-rc.13
4.5.221,702
4.5.1182
4.5.0114
4.5.0-rc.13
4.4.3710
4.4.26
4.4.115
4.4.0831
4.3.2212
4.3.1429
4.3.061
4.2.3251
4.2.226
4.2.14
4.2.0291
4.1.01,288
4.0.216
4.0.1893
4.0.01,223
4.0.0-rc.63
4.0.0-rc.566
4.0.0-rc.415
4.0.0-rc.32
4.0.0-rc.22
4.0.0-rc.13
4.0.0-rc.04
3.4.32,862
3.4.24
3.4.19
3.4.02
3.3.527
3.3.4198
3.3.36
3.3.252
3.3.182
3.3.03
3.2.2281
3.2.114
3.2.02
3.1.2112
3.1.13
3.1.0136
3.0.08
2.2.2267
3.0.0-beta-12
2.2.166
2.2.0118
2.1.74
2.1.63
2.1.515
2.1.42
2.1.32
2.1.235
2.1.14
2.1.087
2.0.0101
2.0.0-rc.330
2.0.0-rc.23
2.0.0-rc.12
1.7.01,916
1.6.03
1.5.03
1.4.361
1.4.22
1.4.13
1.4.02
1.3.04
1.2.24
1.2.12
1.2.02
1.1.02
1.0.02

Package Sidebar

Install

npm i react-toastify

Weekly Downloads

2,380,013

Version

11.0.5

License

MIT

Unpacked Size

536 kB

Total Files

22

Last publish

Collaborators

  • sniphpet