baked-recipe-admin
Version:
Baked is an opinionated framework for .NET in backend and Nuxt in frontend. This is a recipe package that brings together all the components one needs for an Admin UI.
19 lines (16 loc) • 364 B
JavaScript
import { defineNuxtPlugin } from "#app";
import { useToast } from "primevue/usetoast";
import ToastService from "primevue/toastservice";
export default defineNuxtPlugin({
name: "toast",
enforce: "pre",
setup(_nuxtApp) {
_nuxtApp.vueApp.use(ToastService);
const toast = useToast();
return {
provide: {
toast
}
};
}
});