UNPKG

vue-glide-js

Version:
63 lines (45 loc) 931 B
--- sidebarDepth: 2 --- # Getting Started ## Install ### NPM Installing with npm is recommended and it works seamlessly with webpack. ```bash npm i vue-glide-js ``` ### Download You can download latest version from the Github: [Download](https://github.com/antonreshetov/vue-glide/archive/master.zip) ## Quick Start ### Global To use in your project, just import vue-glide and install into Vue. ```js import Vue from 'vue' import App from './App.vue' import VueGlide from 'vue-glide-js' import 'vue-glide-js/dist/vue-glide.css' Vue.use(VueGlide) new Vue({ el: '#app', render: h => h(App) }) ``` ### On demand ```vue <template> <div id="app"> <vue-glide> <vue-glide-slide></vue-glide-slide> </vue-glide> </div> </template> <script> import { Glide, GlideSlide } from 'vue-glide-js' export default { components: { [Glide.name]: Glide, [GlideSlide.name]: GlideSlide } } </script> ```