# @mu-ui/mu-toast

> toast vue plugin for vue 2.x

Latest version **0.1.12** (published 2019-03-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mu-ui/mu-toast
pnpm add @mu-ui/mu-toast
yarn add @mu-ui/mu-toast
bun add @mu-ui/mu-toast
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.12 |
| Published | 2019-03-09 |
| First published | 2018-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 32.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | JR93 |
| Maintainers | jr93 |
| Keywords | toast, vue, plugin |

## Links

- npm: https://www.npmjs.com/package/@mu-ui/mu-toast
- npm.io page: https://npm.io/package/@mu-ui/mu-toast

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 0.1.12 (latest) — 2019-03-09
- 0.1.11 — 2018-12-29
- 0.1.10 — 2018-12-15
- 0.1.9 — 2018-12-15
- 0.1.8 — 2018-12-03
- 0.1.7 — 2018-12-02
- 0.1.6 — 2018-11-18
- 0.1.5 — 2018-11-18
- 0.1.4 — 2018-11-17
- 0.1.3 — 2018-11-11

## README

## mu-toast

toast plugin for vue 2.x

### Installation

```bash
yarn add @mu-ui/mu-toast
```

### Usage

```js
import Toast from '@mu-ui/mu-toast'

Vue.use(Toast)

// two ways to use
this.$toast('hello')
Vue.toast('world')

// more options
this.$toast({
  message: 'toast message',
  position: 'bottom', // top|middle|bottom(default)
  duration: 3000, // 3000(default)
  color: '#fff', // #fff(default)
  bgColor: 'rgba(0, 0, 0, 0.7)', // rgba(0, 0, 0, 0.7)(default)
  customClass: 'custom-class' // [optional]
})
```

### Options

#### message

Type: String|Required

toast message

#### position

Type: String
Default: bottom

the position of toast instance, one of top|middle|bottom

#### duration

Type: Number
Default: 3000

stay time

#### color

Type: String
Default: #fff

text color

#### bgColor

Type: String
Default: rgba(0, 0, 0, 0.7)

backgroundColor

#### customClass

Type: String
Default: ''

custom className to overwrite default style. Please pay attention to the CSS class scope

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