moyueating / rect-toast

A React toast Component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A React toast Component

License:MIT License


Languages

Language:JavaScript 85.7%Language:CSS 9.8%Language:HTML 4.5%