Quick Started

A short guide to help user get started in using the library.

Install

If you are using module bundlers such as Webpack, you can directly include package into your project via:

Note

Please note that this library is not contains any CSS, it only provides javascript functionality for components. You can write your own or install Modulist CSS design system.

NPM

$ npm install @modulist/vue --save
1

Then register modulist-vue components and directives all at once in your app's entry:

// main.js
import Vue from 'vue';
import ModulistVue from '@modulist/vue';

Vue.use(ModulistVue);
1
2
3
4
5

Browser

Alternatively, you can include script directly on your html page. See example here.

<div id="app">
  <!-- Components here ...-->
</div>

<!-- First, include Vue library -->
<script src="https://unpkg.com/vue"></script>
<!-- Then library itself -->
<script src="https://unpkg.com/@modulist/vue"></script>
<script>
  new Vue({
    el: '#app',
  });
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13