Skip to content
Discussion options

You must be logged in to vote

@Macartini Just add it to the createApp chain as .use(Toast, options), e.g.

import Toast from 'vue-toastification'
const options = {
    // You can set your default options here
};

...
  setup({ el, App, props, plugin }) {
    createApp({ render: () => h(App, props) })
      .use(plugin)
      .use(Toast, options)
      .mount(el)
  },
...

Taken from Vue Toastification (for Vue 3) Plugin registration

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@reinink
Comment options

Answer selected by reinink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants