# @benleed/toast

> * Put the Toast component in parent component (Like App.svelte) * Use **postiveToast** or **negativeToast** to show toast with a message * 2nd param set to true will leave toast open until user acts

Latest version **1.0.4** (published 2021-06-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install @benleed/toast
pnpm add @benleed/toast
yarn add @benleed/toast
bun add @benleed/toast
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-06-23 |
| First published | 2021-06-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | benleed |

## Links

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

## Recent versions

- 1.0.4 (latest) — 2021-06-23
- 1.0.3 — 2021-06-23
- 1.0.2 — 2021-06-22
- 1.0.1 — 2021-06-22
- 1.0.0 — 2021-06-22

## README

## Toast

* Put the Toast component in parent component (Like App.svelte)
* Use **postiveToast** or **negativeToast** to show toast with a message
* 2nd param set to true will leave toast open until user acts

**Example**
```
<script>
 import Toast, { positiveToast, negativeToast } from '@benleed/toast'
</script>

<button on:click={() => positiveToast('I am good')}>Show Positive</button>
<button on:click={() => negativeToast('I am not good',true)}>Show Negative with persist</button>

<Toast />
```

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