A Vue.js 2.0 Mobile UI at YouZan
[](https://travis-ci.org/youzan/vant) [](https://codecov.io/github/youzan/vant?branch=dev) [](https://www.npmjs.com/package/vant) [](https://www.npmjs.com/package/vant) [访问中文版](./README.zh-CN.md) ## Install ```shell npm i -S vant ``` ## Usage ### Import all components ```javascript import Vue from 'vue'; import vant from 'vant'; import 'vant/lib/vant-css/index.css'; Vue.use(vant); ``` ### On demand ```javascript import Vue from 'vue'; import { Button, Cell } from 'vant'; import 'vant/lib/vant-css/button.css'; import 'vant/lib/vant-css/cell.css'; Vue.component(Button.name, Button); Vue.component(Cell.name, Cell); ``` ## Development ### Add a new component ```shell make init componentName ``` ### Start coding Start development mode: ```shell npm run dev ``` Visit [http://localhost:8080](http://localhost:8080) to see an example of all components. ## Preview You can scan the following QR code to access the demo:  ## LICENSE [MIT](https://zh.wikipedia.org/wiki/MIT%E8%A8%B1%E5%8F%AF%E8%AD%89)