f3oall / vue-awesome-notifications

Vue.js version of Awesome Notifications library
MIT License
104 stars 10 forks source link

Vue 3 version? #22

Open amchconsult opened 2 years ago

amchconsult commented 2 years ago

do you plan to do a vue 3 version? thank you

cjonstrup commented 2 years ago

You can just use

npm i awesome-notifications

@import 'awesome-notifications/dist/style.css'
import AWN from 'awesome-notifications'

const app = createApp(App)
app.config.globalProperties.$awn = new AWN({
  position: 'top-right',
  minDurations: { 'async-block': 100 },
  durations: { global: 2000, alert: 4000 },
})
dcruz1990 commented 1 year ago

And then how to invoque from components?

tried this this.$awn.success('Your custom message') but get undefined