Get Screen Size In Vue App – vue-screen-size

Get Screen Size In Vue App – vue-screen-size
A Vue.js library to Get easy and reactive access to the width and height of your screen.

Description:

A Vue.js library to Get easy and reactive access to the width and height of your screen.

Install & Download:

# Yarn
$ yarn add vue-screen-size

# NPM
$ npm install vue-screen-size --save

How to use it:

  1. Import the vue-screen-size after you install the package.
import VueScreenSize from 'vue-screen-size'
  1. Register the component.
Vue.use(VueScreenSize);
// or
export default {
  ...
  mixins: [VueScreenSize.VueScreenSizeMixin],
  ...
}
  1. Get the screen size using the following variables.
  • $vssWidth: The width of your screen
  • $vssHeight: The height of your screen
  • $vssEvent: The event object data from the resizing event

Download Details:

Author: johndatserakis

Live Demo: https://johndatserakis.github.io/vue-screen-size/

Download Link: https://github.com/johndatserakis/vue-screen-size/archive/master.zip

Official Website: https://github.com/johndatserakis/vue-screen-size

Suggest:

Build a Quiz App Using Vue JS | Vue JS Quiz App Demo | Vue JS Project Tutorial | Simplilearn

React vs Vue - I Built the Same App in Both Frameworks

Is Vue.js 3.0 Breaking Vue? Vue 3.0 Preview!

Learn Vue.js from scratch 2018

Vue js Tutorial Zero to Hero || Brief Overview about Vue.js || Learn VueJS 2023 || JS Framework

Vue.js Tutorial: Zero to Sixty