JSPM

  • Created
  • Published
  • Downloads 238643
  • Score
    100M100P100Q253713F
  • License MIT

VueUse Nuxt Module

Package Exports

  • @vueuse/nuxt

Readme

@vueuse/nuxt

NPM version

This is an add-on of VueUse, which provides better Nuxt integration auto-import capabilities.

Install

npm i @vueuse/nuxt
// nuxt.config
export default defineNuxtConfig({
  modules: [
    '@vueuse/nuxt',
  ],
})

Caveats

The following utils are disabled from auto-import for Nuxt to avoid conflicts with Nuxt's built-in utils:

  • toRefs
  • useFetch
  • useCookie
  • useHead
  • useTitle
  • useStorage

You can always use them by explicitly import from @vueuse/core

License

MIT License © 2021-PRESENT Anthony Fu