# romasho-toast-lib

> ## Toast library

Latest version **1.1.2** (published 2022-09-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install romasho-toast-lib
pnpm add romasho-toast-lib
yarn add romasho-toast-lib
bun add romasho-toast-lib
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2022-09-06 |
| First published | 2022-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 123.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | romasho |

## Links

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

## Recent versions

- 1.1.2 (latest) — 2022-09-06
- 1.1.1 — 2022-09-05
- 1.1.0 — 2022-09-05
- 1.0.30 — 2022-09-04
- 1.0.29 — 2022-09-04
- 1.0.28 — 2022-09-04
- 1.0.27 — 2022-09-02
- 1.0.26 — 2022-09-02
- 1.0.25 — 2022-09-02
- 1.0.24 — 2022-09-02
- 1.0.23 — 2022-09-01
- 1.0.22 — 2022-09-01
- 1.0.21 — 2022-09-01
- 1.0.20 — 2022-09-01
- 1.0.19 — 2022-09-01
- … 19 more at https://npm.io/package/romasho-toast-lib/versions

## README

# React-Toastify

## Installation

```
$ npm install --save romasho-toast-lib
$ yarn add romasho-toast-lib
```

## Features

- Easy to set up for real, you can make it work in less than 10sec!
- Super easy to customize
- Super easy to use an animation of your choice. 
- Can display a react component inside the toast!
- Define behavior per toast

## The gist

```jsx
  import React from 'react';

  import { toastStore, Toaster, ToastType, AnimationType, ToastPosition } from 'romasho-toast-lib'
  
  function App(){
    const { error } = ToastType;
    const { startX } = AnimationType;
    const { bottomRight } = ToastPosition;  

    const notify = () => toastStore.addToast({
                message: 'Hello world!',
                animation: startX,
                type: error,
              });

    return (
      <div>
        <button onClick={notify}>Add toast</button>
        <Toaster position={bottomRight} />
      </div>
    );
  }
```

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