All Projects → reegodev → Vue Screen

reegodev / Vue Screen

Licence: mit
Reactive screen size and media query states for VueJS

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Screen

muxed
Another TMUX project manager
Stars: ✭ 58 (-51.67%)
Mutual labels:  screen, window
Wiv
Window image viewer [DEPRECATED]
Stars: ✭ 196 (+63.33%)
Mutual labels:  media, window
elastic-composer
Client-side Elasticsearch query generator and executor. Filter fields, find search suggestions, and paginate query results for your indicies using a simple, reactive, and high-level API
Stars: ✭ 14 (-88.33%)
Mutual labels:  query, reactive
Mq Scss
Extremely powerful Sass media query mixin. Allows you to create almost any media query you can imagine.
Stars: ✭ 122 (+1.67%)
Mutual labels:  query, media
codecinfo
Detailed listing of multimedia codecs on an Android device
Stars: ✭ 33 (-72.5%)
Mutual labels:  query, media
Ts3 Nodejs Library
TeamSpeak 3 Server Query Library supports SSH and RAW Query
Stars: ✭ 110 (-8.33%)
Mutual labels:  query
Influxdb Ui
🐎 A simple UI for InfluxDB
Stars: ✭ 117 (-2.5%)
Mutual labels:  query
Scrcpy
Display and control your Android device
Stars: ✭ 58,880 (+48966.67%)
Mutual labels:  screen
Laravel Cacheable
Rinvex Cacheable is a granular, intuitive, and fluent caching system for eloquent models. Simple, but yet powerful, plug-n-play with no hassle.
Stars: ✭ 107 (-10.83%)
Mutual labels:  query
Vime
Customizable, extensible, accessible and framework agnostic media player. Modern alternative to Video.js and Plyr. Supports HTML5, HLS, Dash, YouTube, Vimeo, Dailymotion...
Stars: ✭ 1,928 (+1506.67%)
Mutual labels:  media
Swifty360player
iOS 360-degree video player streaming from an AVPlayer.
Stars: ✭ 118 (-1.67%)
Mutual labels:  media
Swiftlysalesforce
The swiftest way to build iOS apps that connect to Salesforce
Stars: ✭ 115 (-4.17%)
Mutual labels:  reactive
Revogrid
Powerful virtual data grid smartsheet with advanced customization. Best features from excel plus incredible performance 🔋
Stars: ✭ 1,870 (+1458.33%)
Mutual labels:  reactive
Rxjs In Action
Code sample repository
Stars: ✭ 117 (-2.5%)
Mutual labels:  reactive
Wmwm
Pure Go autotiling window manager
Stars: ✭ 107 (-10.83%)
Mutual labels:  window
Advanced Vertx Guide
A gentle guide for advanced Vert.x users
Stars: ✭ 118 (-1.67%)
Mutual labels:  reactive
Motorcyclejs
A statically-typed, functional and reactive framework for modern browsers
Stars: ✭ 107 (-10.83%)
Mutual labels:  reactive
Mediaselector
Android图片选择器,仿微信相册图片选择器,支持自定义!
Stars: ✭ 115 (-4.17%)
Mutual labels:  media
R2dbc H2
R2DBC H2 Implementation
Stars: ✭ 118 (-1.67%)
Mutual labels:  reactive
Rxasdatasources
RxDataSource for AsyncDisplayKit/Texture
Stars: ✭ 114 (-5%)
Mutual labels:  reactive

Build Status Build Status npm version npm downloads


Warning: Version 2.0 only supports Vue 3 and is in early alpha version. There might still be API changes before final release.
v1 docs are available here


VueScreen logo

[email protected]

Reactive screen size and media query states for Vue. Supports your favourite UI framework out of the box, and can be configured with any custom breakpoints.

Docs

https://reegodev.github.io/vue-screen

Features

  • Reactive and debounced screen size
  • Reactive media query states and device orientation
  • Detect touch screen capability
  • Breakpoints for most common ui frameworks provided out of the box: Tailwind, Bootstrap, Bulma, Foundation, Materialize, Semantic UI
  • SSR compatible with Nuxt module included. Nuxt module development is pending Nuxt 3 release

Installation

npm i [email protected]
yarn add [email protected]

Quick start

Use with composition API

import { useScreen, useGrid } from 'vue-screen'

export default {
    setup() {
        const screen = useScreen()
        const grid = useGrid('bulma')

        return {
            screen,
            grid
        }
    }
}

For advanced configurations, check out the docs website.

Use as a plugin

import { createApp } from 'vue'
import VueScreen from 'vue-screen'

// In App.vue
createApp()
  .use(VueScreen, 'bootstrap')
  .mount('#app')

// In MyComponent.vue
<template>
    <ul>
        <li>Current breakpoint is: {{ $grid.breakpoint }}</li>
        <li>Window width is: {{ $screen.width }}</li>
        <li>Window height is: {{ $screen.height }}</li>
    </ul>
</template>

Upgrading from v1

v2 introduces a few breaking changes both in the configuration and in the API. Read more about them in the docs section.

Browser support

All browsers except IE.
Efforts in supporting IE will never occur. Let it die.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].