0.0.2 • Published 4 years ago

@wildpoint/vue-breakpoints-ts v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

VueBreakpointsTs

Setup

// main.ts
import Vue from 'vue';

Vue.use(VueBreakpointsTs)

new Vue({
  render: h => h(App)
}).$mount('#app')

Usage

// App.vue
<template>
  <div id="app">
    <h1 v-if="$breakpoint.mdAndDown">
        {{ breakpoint }}
    </h1>
  </div>
</template>

export default class App extends Vue {
  get breakpoint (): string {
    return Vue.prototype.$breakpoint.current
  }
}
0.0.2

4 years ago

0.0.1

4 years ago