🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

nuxt-mq

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-mq

vue-mq module for Nuxt.js

3.0.0
latest
Source
npm
Version published
Weekly downloads
4.1K
-7.84%
Maintainers
1
Weekly downloads
 
Created
Source

nuxt-mq

Deprecated nuxt-mq is deprecated. If you wan't to create Vue logic based on the screen size, I recommend using a solution that uses hooks instead. Personally, I would recommend VueUse useMediqQuery hook. VueUse has support for both Nuxt 2 and Nuxt 3 projects. Thanks for all the support! ✌️

📖 Release Notes

Features

vue-mq module for Nuxt.js.

Setup

  • Add nuxt-mq dependency using yarn or npm to your project
  • Add nuxt-mq to modules section of nuxt.config.js
{
  modules: [
    // Simple usage
    [
      'nuxt-mq',
      {
        // Default breakpoint for SSR
        defaultBreakpoint: 'sm',
        breakpoints: {
          sm: 450,
          md: 1250,
          lg: Infinity
        }
      }
    ]
  ];
}

using top level options

{
  modules: [
    ['nuxt-mq']
  ],

 'mq': {
    defaultBreakpoint: 'sm',
    breakpoints: {
      sm: 450,
      md: 1250,
      lg: Infinity,
    }
  }
}

Usage

Click here for all options and features of vue-mq.

Development

  • Clone this repository
  • Install dependencies using yarn install or npm install
  • Start development server using npm run dev or with Node debugging on npm run dev-debug

License

MIT License

Copyright (c) Maarten Van Hoof

Credits

  • vue-mq for providing the plugin.
  • @nuxtjs for providing a excellent example on how to build a basic Nuxt.js module.

Keywords

nuxt

FAQs

Package last updated on 04 Nov 2022

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