You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
406 B
18 lines
406 B
import Vue3Toastify, { toast } from 'vue3-toastify';
|
|
import 'vue3-toastify/dist/index.css';
|
|
import './vue3-toastify.css'
|
|
|
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
nuxtApp.vueApp.use(Vue3Toastify, {
|
|
autoClose: 3000,
|
|
newestOnTop: true,
|
|
clearOnUrlChange: false,
|
|
theme: "colored",
|
|
transition: "slide",
|
|
position: "bottom-right",
|
|
});
|
|
|
|
return {
|
|
provide: { toast },
|
|
};
|
|
});
|