Socket
Socket
Sign inDemoInstall

nuxt-breakpoint

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nuxt-breakpoint

Nuxt Breakpoint Module


Version published
Weekly downloads
12
increased by300%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Nuxt Breakpoint

🚀 Usage

npm i nuxt-breakpoint
//nuxt.config.js
modules: [
  ['nuxt-breakpoint', {
    //options
  }]
]

This module is working on client side only. Variable $breakpoints is available everywhere, to make it reactive, you need to add it to the page/component data:

data() {
  return {
    breakpoints: this.$breakpoints
  }
}

🔧 Options

  • breakpoints
  • debounce
Breakpoints

You can add any amount of breakpoints you want:

modules: [
  ['nuxt-breakpoint', {
    breakpoints: {
      // Default options
      'mobile': '<=768',
      'tablet': ['<=1024', '>768'],
      'desktop': '>1024'
    }
  }]
]
Debounce

Number of miliseconds to debounce window 'resize' event (default: 100)

Keywords

FAQs

Last updated on 27 Jan 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc