@mdxh/vue-toastification
v0.0.1
Published
Install vue-toastification to vue3 using dxh wrapper
Downloads
2
Maintainers
Readme
@mdxh/vue-toastification
Install VueToastification to vue3 using dxh wrapper
Usage
Installation
Just use the below command to install VueToastification.
npm i @mdxh/vue-toastification@latest
Plugin registration
Create a VueToastification instance and pass it to the app as a plugin:
import { createApp } from "vue";
import Toast, { type PluginOptions } from "vue-toastification";
// Import the CSS or use your own!
import "vue-toastification/dist/index.css";
const app = createApp(...);
const options: PluginOptions = {
// You can set your default options here
};
app.use(Toast, options);
Start your project
npm run dev