# Toast

## 说明
Toast 为一款基于react的移动端轻提示组件

## 安装
```

// npm
npm install --save react-simple-toast

// cnpm 
cnpm install --save react-simple-toast

// yarn
yarn add react-simple-toast

```

## 使用方法
```

import Toast from 'react-simple-toast';

...

Toast({
    type: "msg",  // 类型
    msg: "文本提示", // 文字内容
    duration: 2000 // 显示时间
})

```

## 参数说明
> **type** 的值可以为 **msg | loading | success | fail | offline**

> **msg** 即弹出框中所显示的提示内容

> **duration** 为弹出框存留的时间，如不设置，则为1500ms

> **typeStatus** 在 **type** 为 **loading** 时使用，**typeStatus** 为 **1** 时正在加载，**typeStatus** 为 **2** 时加载完毕

> 具体使用方法可以查看example

## example 图片示例
![example图片示例][1]


  [1]: http://7xt9bz.com2.z0.glb.clouddn.com/GIF.gif
