# mor-mini-toast

> Mini toast

Latest version **3.1.51** (published 2022-02-05) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install mor-mini-toast
pnpm add mor-mini-toast
yarn add mor-mini-toast
bun add mor-mini-toast
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.1.51 |
| Published | 2022-02-05 |
| First published | 2022-01-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 94.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mohammadrezahq |
| Maintainers | mohammadrezahq |
| Keywords | toast |

## Links

- npm: https://www.npmjs.com/package/mor-mini-toast
- npm.io page: https://npm.io/package/mor-mini-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

- 3.1.51 (latest) — 2022-02-05
- 3.1.5 — 2022-02-05
- 3.1.4 — 2022-02-05
- 3.1.3 — 2022-02-05
- 3.0.2 — 2022-02-04
- 3.0.1 — 2022-02-04
- 2.0.0 — 2022-01-31
- 1.1.1 — 2022-01-26
- 1.1.0 — 2022-01-26
- 1.0.1 — 2022-01-26
- 1.0.0 — 2022-01-26

## README

# Mor Mini Toast for JavaScript


> Read the documentation here: https://mohammadrezahq.github.io/mor-mini-toast/


### Setup:

Install package with npm:

```
npm i mor-mini-toast
```

Import package directly on web page:

```html
<script src="https://unpkg.com/mor-mini-toast/bundle.js"></script>
```
### Import

```js
import MiniToast from 'mor-mini-toast'

// OR

const MiniToast = require('mor-mini-toast')
```

### Initialize

```js
let toast = MiniToast.init(String message, Object options)

// Message will be the text of the toast

// With bundle.js use this:
let toast = window.miniToast.init(String message, Object options)

```

### Set Position

```js
let options = {
    position: 'top-left' // default 
}
```
The position of the toast should be a combination of a vertical position and - a horizontal position: 'top-left', 'middle-center', 'bottom-right'

<b>Learn more in the documentation</b>

### Show the toast

```js
toast.show()
```

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