1.0.0 • Published 4 years ago

svelte-toast v1.0.0

Weekly downloads
121
License
MIT
Repository
github
Last release
4 years ago

svelte-toast

a simple toast wirten by svelte

Demo

svelte-toast.surge.sh

Installation

yarn add svelte-toast

Usage

import Toast from 'svelte-toast'

const toast = new Toast([opts])
toast.show('Hello Svelte'[, opts])
toast.info('Hello Svelte'[, opts])
toast.success('Hello Svelte'[, opts])
toast.error('Hello Svelte'[, opts])

Options

optiondescriptionvaluesdefault
positionposition of toast'top-left', 'top-center', 'top-right', 'bottom-left', 'bottom-center', 'bottom-right''bottom-center'
durationdisplay time of toastin millisecond2000

Lisence

MIT

1.0.0

4 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.1.0-beta

7 years ago