Vue Plugins

In this example:

plugins/vue-toolitp.js imports our tooltip and tells Vue to use..

pages/index.vue uses our plugin.

nuxt.config.js contains the plugins property to register our plugin and the css property to add our tooltip css.

package.json show our tooltip package has been installed.

Learn more in the Directory Structure book in the plugins chapter.

Loading CodeSandbox...