README.md 864 B

toasters

Toast alerts (initially developed for Vue.js with a material-design style)

Installation

npm install -S --production toasters

Usage

<template>
    <toast></toast>
</template>

<script>
    import { Toast } from 'toasters';

    export default {
        ready() {
            new Toast({
                content: "This is a test for content",
                persistant: true,
                position: {
                    horizontal: "right",
                    vertical: "bottom"
                }
            });
        }
    }
</script>

Contributing

# install dependencies
npm install

# watch files for changes wtih webpack
npm run dev

# build for production with minification
npm run build