Skip to content

kimwandev/react-toastr-basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages