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://rawgit.com/cristijora/vue-notifyjs/master/themes/default.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)
var customMessage = Vue.component('custom-message',{
template:`<span>Some <b>bolded html text</b></span>`
});
new Vue({
el: '#app',
methods: {
addNotification(verticalAlign = 'top', horizontalAlign = 'right') {
this.$notify({
horizontalAlign: horizontalAlign,
verticalAlign: verticalAlign,
type: "info",
component: customMessage
})
}
}
})