JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://rawgit.com/cristijora/vue-notifyjs/master/dist/vue-notifyjs.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/vue-notifyjs/themes/now-ui.css">
<div id="app">
<div>
<notifications></notifications>
<button @click="addNotification('top','right')">Add Top right</button>
<button @click="addNotification('buttom','right')">Add Bottom right</button>
<button @click="addNotification('buttom','left')">Add Bottom left</button>
</div>
</div>
JavaScript
Vue.use(vueNotifyjs)
new Vue({
el: '#app',
methods: {
addNotification(verticalAlign = 'top', horizontalAlign = 'right') {
this.$notify({
message: 'Welcome ',
horizontalAlign: horizontalAlign,
verticalAlign: verticalAlign,
type: "info"
})
}
}
})