0.1.3 • Published 5 months ago

omni-notification v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

omni-notification

This is a simple vue3 notification plugin.

Installation

Install with npm:

npm install omni-notification --save

Usage

register the plugin in your main.js

import {createApp} from 'vue';
import App from './App.vue';
import OmniNotification from 'omni-notification';

const app = createApp(App);
app.use(OmniNotification);
app.mount('#app');

use in script setup

import {inject} from 'vue';

const notify = inject('notify');
notify('Hello World!');

use in template

<template>
    <button @click="$notify(`Hello World!`)">Notify</button>
</template>
0.1.3

5 months ago

0.1.0

5 months ago

0.0.4

6 months ago