Installation

yarn add chimu-ui # OR npm install chimu-ui --save
1

Import Chimu

You can import Chimu entirely, or just import what you need. Let's start with full import.

Full import

Easy way. When you want create simple prototype.

import Vue from 'vue';
import chimuUI from 'chimu-ui';
import 'chimu-ui/lib/styles/chimu.common.css';

Vue.use(chimuUI);

new Vue({
  el: '#app',
  render: h = h(App),
});
1
2
3
4
5
6
7
8
9
10

On demand

You can import only neaded components.

import Vue from 'vue';
import MuHighlight from 'chimu-ui/lib/mu-highlight';
import MuOfferCard from 'chimu-ui/lib/mu-offer-card';
import MuPreloader from 'chimu-ui/lib/mu-preloader';

import 'chimu-ui/lib/styles/mu-highlight.css';
import 'chimu-ui/lib/styles/mu-offer-card.css';
import 'chimu-ui/lib/styles/mu-preloader.css';


Vue.use(MuHighlight);
Vue.use(MuOfferCard);
Vue.use(MuPreloader);

new Vue({
  el: '#app',
  render: h = h(App),
});
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18