vue-bootstrap-toasts
vue-bootstrap-toasts
This was bulit with bootstrap 4 "toasts" component in mind, so It depends on bootstrap 4.
Demo?
https://rakk7.github.io/vue-bootstrap-toasts/demo/
Why did I create this? there is many of Vue toasts plugins out there?
I created this because I am already working with bootstrap 4, and I needed Vue to make toasts component more dynamic. Other plugins add too much complex I don't need.
How to install?
npm install vue-bootstrap-toasts
How to use it?
1- Import..
import VueBootstrapToasts from "vue-bootstrap-toasts";
Vue.use(VueBootstrapToasts);
2 - Add the component in your html, somewhere at the top..
<Toasts></Toasts>
Or if u want to override default values
<Toasts
:rtl="true"
:max-messages="7"
:time-out="5000" // 5 secs
:closeable="false"
></Toasts>
3 - Call these methods where ever you want inside vue..
this.$toast.success('your message');
this.$toast.error('your message');
this.$toast.warning('your message');
this.$toast.info('your message');
Or Pass an options per toast
this.$toast.success("your message", {
rtl: true,
timeOut: 0, // infinity
closeable: false
});
Thats it.
Related Packages
vue-toastflow
Framework-agnostic toast engine with a Vue 3 renderer. Typed core, smooth stack...
17,273
207
nuxt-toastflow
Nuxt module for Toastflow — accessible, customizable toast notifications with au...
2,507
207
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.7 | ^2.6.10 | ISC | |
| 1.0.6 | ^2.5.21 | ISC | |
| 1.0.5 | ^2.5.21 | ISC | |
| 1.0.4 | ^2.5.21 | ISC | |
| 1.0.3 | ^2.5.21 | ISC | |
| 1.0.2 | ^2.5.21 | ISC | |
| 1.0.1 | ^2.5.21 | ISC | |
| 1.0.0 | ^2.5.21 | ISC |