Skip to content

Disable multiple.

Each click shows only one toast, and override the previous one.

import App from './App.vue';
import { createApp } from 'vue';
import Vue3Toasity from 'vue3-toastify';
import 'vue3-toastify/dist/index.css';

createApp(App).use(
Vue3Toasity,
{
multiple: false,
}, // global options type definition --> ToastContainerOptions
).mount('#app');

Released under the MIT License.