Skip to content

Lab Components ​

INFO

The module supports auto-import for labs components, allowing you to use them on demand.

The module supports Vuetify labs components via the vuetifyOptions.labsComponents module option, designed for a better developer experience.

You can register all lab components or only the ones you need. Please check the lab component definition for more details.

Examples ​

Registering all the lab components ​

Here is an example of registering all Vuetify lab components:

ts
export default defineNuxtConfig({
  modules: ['vuetify-nuxt-module'],
  vuetify: {
    vuetifyOptions: {
      labComponents: true
    }
  }
})

Registering single lab component ​

Here is an example of registering a single Vuetify lab component using either the singular name or array notation:

ts
export default defineNuxtConfig({
  modules: ['vuetify-nuxt-module'],
  vuetify: {
    vuetifyOptions: {
      labComponents: 'VDataTable' // or ['VDataTable']
    }
  }
})

Registering multiple lab components ​

Example registering multiple Vuetify lab components, use array notation:

ts
export default defineNuxtConfig({
  modules: ['vuetify-nuxt-module'],
  vuetify: {
    vuetifyOptions: {
      labComponents: ['VDataTable', 'VDatePicker']
    }
  }
})

Released under the MIT License.