# nw-toast

> > toast组件

Latest version **1.17.0** (published 2018-05-30) · 0 weekly downloads

## Install

```sh
npm install nw-toast
pnpm add nw-toast
yarn add nw-toast
bun add nw-toast
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.17.0 |
| Published | 2018-05-30 |
| First published | 2017-10-24 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ansenhuang, azgaga, liushichuan, longyunxia, sherrywu, wuww5511, yaochen, yun77op |

## Links

- npm: https://www.npmjs.com/package/nw-toast
- npm.io page: https://npm.io/package/nw-toast

## Recent versions

- 1.17.0 (latest) — 2018-05-30
- 1.14.10 — 2018-03-12
- 1.0.11 — 2017-10-26
- 1.0.10 — 2017-10-25
- 1.0.9 — 2017-10-25
- 1.0.3 — 2017-10-24
- 1.0.1 — 2017-10-24
- 1.0.0 — 2017-10-24

## README

# nw-toast

> toast组件

## 安装

```sh
$ yarn add nw-toast
```

## API

```js
import toast from 'nw-toast';
```

### `toast(options)`

显示toast

* `options`: **required** **Object** 选项
    * `text`: **required** **String** 内容
    * `delay`: **required** **Number** 多久后隐藏，单位为毫秒，默认2000

```js
import toast from 'nw-toast';

toast({
    text: '你好',
    delay: 3000
});
```

```js
import Toast from 'nw-toast/es/toast';
```

Toast类，可以继承后再做自定义

---
_Source: https://npm.io/package/nw-toast · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
