/rect-toast

A React toast Component

Primary LanguageJavaScriptMIT LicenseMIT

rect-toast

A React Toast Component, online demo

Install

npm install rect-toast

Usage

import Toast from 'rect-toast'
import 'rect-toast/dist/index.css'

Toast.info('hello world', 1000, () => {})

Notice

In your webpack config, you need to set css rule without Rule.exclude. Just like this:

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

LICENSE

MIT