Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 600 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 600 Bytes

Vue Snotify for Vue 3

Based on vue-snotify for Vue 2.

How to use

npm i --save vue3-snotify

In main.ts :

import snotify from 'vue3-snotify';
import 'vue3-snotify/style';
const app = createApp(App)
app.use(snotify);
app.mount('#app');

In App.vue:

<vue-snotify />

In a component:

this.$snotify.error('hello');

The api should be the same as vue-snotify

Todos:

  • Restore html functionality on SnotifyService
  • Restore async functionality on SnotifyService
  • Style options