Vue- display: Responsive media concerns - Vue.js Supplied #.\n\nCaution: Variation 2.x merely supports Vue 3. v1 doctors are on call listed here.\n\n\n\n\nReactive display measurements and also media query states for Vue. Assists your favorite UI platform away from the box, as well as can be configured along with any sort of custom breakpoints.\n\nhttps:\/\/reegodev.github.io\/vue-screen.\n\nReactive as well as debounced screen dimension.\nReactive media query conditions and also device alignment.\nDetect contact display screen capability.\nBreakpoints for a lot of common ui platforms supplied out of package: Tailwind, Bootstrap, Bulma, Groundwork, Materialize, Semantic User Interface.\nSSR suitable with Nuxt module consisted of. Nuxt module progression is pending Nuxt 3 launch.\n\nnpm i vue-screen.\nyarn incorporate vue-screen.\n\nMake use of along with structure API.\nbring in useScreen, useGrid coming from 'vue-screen'.\n\nexport nonpayment \nsetup() \nconst monitor = useScreen().\nconst framework = useGrid(' bulma').\n\nreturn \nmonitor,.\nframework.\n\n\n\nFor enhanced configurations, take a look at the docs website.\nUsage as a plugin.\nimport createApp from 'vue'.\nbring in VueScreen coming from 'vue-screen'.\n\n\/\/ In App.vue.\ncreateApp()\n. use( VueScreen, 'bootstrap')\n. mount('
app').// In MyComponent.vue.Present breakpoint is actually: $grid.breakpointHome window size is actually: $screen.widthHome window height is actually: $screen.height
v2 introduces a couple of breaking changes both in the arrangement and in the API.Learn more concerning them in the doctors section.
Articles You Can Be Interested In