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.5403,829latest
11.0.1-react173,806v11-react17
10.0.0-beta.111beta
11.0.4-07next
9.0.6-vite-16vite-debug-0.1
8.0.2-with-side-effects6test
9.0.7-fix-autoclose-24fix-autoclose-2
9.1.2-rsc3rsc-test
9.0.7-fix-autoclose-13fix-autoclose-1
10.0.2-debug3debug

Version History

VersionDownloads (Last 7 Days)Published
11.0.5403,829
11.0.4865
11.0.4-07
11.0.366,598
11.0.235,471
11.0.1-react173,806
11.0.11,432
11.0.05,424
11.0.0-020
10.0.7-5108
10.0.7-418
10.0.7-32
10.0.7-22
10.0.7-13
10.0.7-07
10.0.6335,713
10.0.5254,903
10.0.422,351
10.0.31,167
10.0.2-debug3
10.0.296
10.0.1211
10.0.02,179
10.0.0-beta.111
9.1.3442,189
9.1.2-rsc3
9.1.217,351
9.1.150,260
9.1.0873
9.0.826,116
9.0.7-fix-autoclose-24
9.0.7-fix-autoclose-13
9.0.72,782
9.0.6-vite-16
9.0.666
9.0.54,106
9.0.42,180
9.0.328,429
9.0.21,552
9.0.12,708
9.0.02,631
9.0.0-rc-2234
9.0.0-rc-12
9.0.0-POC68
8.2.0147,241
8.1.11,913
8.1.040,204
8.0.38,682
8.0.2-with-side-effects6
8.0.24,676
8.0.143
8.0.03,141
8.0.0-rc12
7.0.470,362
7.0.37,900
7.0.227
7.0.158
7.0.0283
7.0.0-rc34
7.0.0-rc22
7.0.0-rc13
6.2.049,172
6.1.02,789
6.0.93,089
6.0.89,195
6.0.75
6.0.6694
6.0.51,239
6.0.4235
6.0.39
6.0.234
6.0.14
6.0.01,149
6.0.0-rc.34
6.0.0-rc.2-1233
6.0.0-rc.22
6.0.0-rc.12
6.0.0-rc.04
5.5.060,565
5.4.11,293
5.4.02,811
5.3.22,550
5.3.1276
5.3.016
5.2.1331
5.2.096
5.1.195
5.1.02,454
5.0.114
5.0.1-rc.14
5.0.082
5.0.0-rc.6142
5.0.0-rc.52
5.0.0-rc.43
5.0.0-rc.3974
5.0.0-rc.22
5.0.0-rc.12
4.5.218,615
4.5.123
4.5.092
4.5.0-rc.12
4.4.3378
4.4.25
4.4.16
4.4.0438
4.3.2207
4.3.12,911
4.3.045
4.2.3157
4.2.28
4.2.14
4.2.085
4.1.01,310
4.0.217
4.0.1520
4.0.01,453
4.0.0-rc.62
4.0.0-rc.559
4.0.0-rc.48
4.0.0-rc.32
4.0.0-rc.22
4.0.0-rc.12
4.0.0-rc.03
3.4.32,108
3.4.25
3.4.15
3.4.03
3.3.513
3.3.460
3.3.32
3.3.24
3.3.1205
3.3.03
3.2.2117
3.2.115
3.2.03
3.1.212
3.1.12
3.1.03
3.0.023
2.2.2195
3.0.0-beta-12
2.2.149
2.2.019
2.1.76
2.1.62
2.1.514
2.1.42
2.1.32
2.1.217
2.1.12
2.1.043
2.0.03
2.0.0-rc.312
2.0.0-rc.22
2.0.0-rc.12
1.7.01,100
1.6.03
1.5.05
1.4.347
1.4.22
1.4.15
1.4.02
1.3.07
1.2.23
1.2.15
1.2.03
1.1.02
1.0.05

Package Sidebar

Install

npm i react-toastify

Weekly Downloads

1,880,711

Version

11.0.5

License

MIT

Unpacked Size

536 kB

Total Files

22

Last publish

Collaborators

  • sniphpet