svelte-toasty
Version:
Easily configurable toast notification component for Svelte
64 lines (42 loc) • 1.69 kB
Markdown
# svelte-toasty
[](https://npmjs.org/package/svelte-toasty)
[](https://npmjs.org/package/svelte-toasty)
[](https://github.com/RichardLitt/standard-readme)
[](https://npmjs.org/package/svelte-toasty)
[](http://makeapullrequest.com)
> Easily configurable toast notification component for Svelte
## Table of Contents
- [Demo](#demo)
- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#License)
## About
Check out the demo [here](https://svelte-toasty.netlify.app/) ([source](./src/App.svelte))
## Install
This project uses [node](https://nodejs.org) and [npm](https://www.npmjs.com).
```sh
$ npm install svelte-toasty
$ # OR
$ yarn add svelte-toasty
```
## Usage
```svelte
<script>
import {
ToastContainer,
success
} from "svelte-toasty";
</script>
<button type="button" on:click={() => }>Click me</button>
```
<div align="center">
<img src="./example.gif" alt="Example of toasts" width="75%">
</div>
## Contribute
1. Fork it and create your feature branch: `git checkout -b my-new-feature`
2. Commit your changes: `git commit -am "Add some feature"`
3. Push to the branch: `git push origin my-new-feature`
4. Submit a pull request
## License
MIT