An open API service indexing awesome lists of open source software.

https://github.com/futurewan/rc-toaster

react component of toast
https://github.com/futurewan/rc-toaster

Last synced: about 1 year ago
JSON representation

react component of toast

Awesome Lists containing this project

README

          

# react-toast

react component of toast

## install

```
npm install --save rc-toaster
```

## usage

```
import Toast from 'rc-toaster';

Toast.text('this is a Toast');
Toast.text({
content: this is a Toast,
mask: false,
duration: 5,
onCloseCallBack: function(){
console.log('has close')
}
});
```
## API

| property | explain | type | default |
| :---------- | :--- | :--- | :--- |
| content | show contents | string | - |
| mask | show mask | boolean | true |
| prefixCls | style className | string | 'w-toast' |
| duration | Destruction time | number | 3 |
| onCloseCallBack | close callback | function | - |