Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nuxt-alt/vuetify

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxt-alt/vuetify

An alternative module for setting up Vuetify 3 with nuxt.

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-55.56%
Maintainers
1
Weekly downloads
 
Created
Source

Vuetify 3 module for Nuxt

Info

An alternative module for setting up Vueitfy 3 with nuxt.

Setup

  1. Add @nuxt-alt/vuetify and sass dependency to your project
yarn add @nuxt-alt/vuetify sass
  1. Add @nuxt-alt/vuetify to the modules section of nuxt.config.ts
export default defineNuxtConfig({
    modules: [
        '@nuxt-alt/vuetify'
    ],
    vuetify: {
        /* module options */
    }
});

Demo Setup

You can view a Stackblitz setup here

Options

vuetifyOptions

  • Type: Object
  • Default: {}

This property sets the configuration for vuetify via the createVuetify function. All the properites here are for the vuetify vonfiguration, so consider looking at their documentation for that.

pluginOptions

  • Type: Object
  • Default: {}

These options pertain to the vuetify-loader options

OptionType
autoImportBoolean
stylestrue / 'none' / 'expose' / 'sass' / { configFile: string }

Composables

Vuetify comes with their own compasables, I've just added it to nuxt for auto-importing.

Available Composables
useTheme
UseDisplay
useRtl
useLocale
useLayout

Known Bugs

1. Custom Scss issue (Source: https://github.com/nuxt/framework/issues/8825)

There is a bug with vuetify where custom scss files might not function correctly. Depending on how severe this issue i, I might try to implement an alternative solution to this.

2. Theme values not applying & memory leak (Source: https://github.com/vuetifyjs/vuetify/issues/16156)

There's currently a bug with vueuse/head where it's potentially causing a memory leak and also not adapting changes when using the useTheme composable. For now, I have made a workaround where the module will be running its own createVuetify instance inheriting from vueitfy and making the necissary changes to make it function. Until this is fixed thta will be used instead.

This should have been fixed in vueitfy's 3.1.6 version.

Keywords

FAQs

Package last updated on 05 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc