New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nuxt-breakpoint

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-breakpoint

Nuxt Breakpoint Module

0.0.0
Source
npm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
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

nuxt brakpoints

FAQs

Package last updated on 27 Jan 2020

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