1.1.14 • Published 7 years ago

react-toastr-basic v1.1.14

Weekly downloads
51
License
ISC
Repository
github
Last release
7 years ago

react-toastr-basic

A simple react toastr for your application. Easy to install and easy to use. This application is based on react and flux

Basic Installation

npm install --save-dev react-toastr-basic

Demo

Live Demo

Animation (reference or download animate.css)

<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">

Usage


Style (Please add the rule in your webpack.config.js)

 module: {
        rules:[
            {
                test: /\.css$/,
                use: ['style-loader', 'css-loader']
            }
        ]
 }

Import

import ToastrContainer from 'react-toastr-basic'

Add Markup to Index.html (or shell page)

<ToastrContainer />

Use

import {Toast} from 'react-toastr-basic';
Toast('my toast message');

Success Toast

import {ToastSuccess} from 'react-toastr-basic';
ToastSuccess('my successful toast');

Danger Toast

import {ToastDanger} from 'react-toastr-basic';
ToastDanger('my dangerous toast');
1.1.14

7 years ago

1.1.13

7 years ago

1.1.12

7 years ago

1.1.11

7 years ago

1.1.10

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago