UNPKG

maz-ui

Version:

A standalone components library for Vue.Js 3 & Nuxt.Js 3

15 lines (14 loc) 412 B
import { useInjectStrict } from "./useInjectStrict.js"; function useToast() { const toast = useInjectStrict("mazToast", void 0, "[maz-ui](useToast) ToastPlugin is not installed"); return { message: toast.message.bind(toast), success: toast.success.bind(toast), error: toast.error.bind(toast), info: toast.info.bind(toast), warning: toast.warning.bind(toast) }; } export { useToast };