diff --git a/README.md b/README.md index dbea79c..3e538fb 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ npm install @meforma/vue-toaster ## Import +You can install Toaster so it's usable globally: + ```js // In you main.js // ... considering that your app creation is here @@ -24,6 +26,16 @@ import Toaster from "@meforma/vue-toaster"; createApp(App).use(Toaster).mount("#app"); ``` +You can also import Toaster locally: + +```js +import { createToaster } from "@meforma/vue-toaster"; + +const toaster = createToaster({ /* options */ }); + +toaster.show(`Hey! I'm here`); +``` + ## Usage ```js