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

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
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

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

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