3.0.0 • Published 1 year ago

nuxt-mq v3.0.0

Weekly downloads
6,885
License
MIT
Repository
github
Last release
1 year ago

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

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

1 year ago

2.0.2

3 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.1.0

6 years ago

1.1.1

6 years ago