Zero-config Nuxt Module for Vuetify
π Full documentation & guides
- π Zero-Config: sensible built-in default Vuetify configuration for common use cases
- β‘ Fully Tree Shakable: by default, only the Vuetify components you use are imported
- πͺ Auto-Import: Vuetify components and composables are auto-imported β no manual imports needed
- π Extensible: customize the Vuetify configuration via Nuxt Runtime Hooks, Nuxt Layers, the
vuetify:registerModulemodule hook, or a dedicatedvuetify.configfile - π₯ SSR: automatic SSR detection and configuration, including HTTP Client Hints
- β¨ Configurable Styles: configure your variables using Vuetify SASS Variables
- π οΈ Directives & Labs: optional directives and labs components registration
- π Icons: pure-CSS icons (UnoCSS), icon fonts (CDN or local), SVG packs (@mdi/js, FontAwesome), and multiple icon sets
- π I18n: integrate @nuxtjs/i18n for Vuetify internationalization, with auto-imported Vuetify locale messages
- π Date Components: use Vuetify date components via the @date-io adapters
- π¨ Blueprints: scaffold quickly with Vuetify Blueprints
- π¦Ύ Type Strong: written in TypeScript
Requires Vite, will not work with Webpack
vuetify is a peer dependency (Vuetify 3 or 4) β install it alongside the module:
npm install -D vuetify
npx nuxt module add vuetify-nuxt-module
vuetify-nuxt-moduleis strongly opinionated and has a built-in default configuration out of the box. You can use it without any configuration, and it will work for most use cases.
Add vuetify-nuxt-module module to nuxt.config.ts and configure it:
// Nuxt config file
import { defineNuxtConfig } from 'nuxt/config'
export default defineNuxtConfig({
modules: [
'vuetify-nuxt-module'
],
vuetify: {
moduleOptions: {
/* module specific options */
},
vuetifyOptions: {
/* vuetify options */
}
}
})Read the π documentation for a complete guide on how to configure and use this module.
Check out the types.
The virtual modules can be found in configuration.d.ts file.
MIT License Β© 2023-PRESENT Vuetify, LLC