Skip to content

cokeknight/mint-ui

 
 

Repository files navigation

mint-ui

Mobile UI elements for vue.js

Installation

npm i mint-ui -S

Usage

import all components.

import Vue from 'vue'
import Mint from 'mint-ui';

Vue.use(Mint);

Or import specified component. (Use babel-plugin-component)

import { Cell, Checklist } from 'mint-ui';

Vue.component(Cell.name, Cell);
Vue.component(Checklist.name, Checklist);

Equal to

import Vue from 'vue';
import Mint from 'mint-ui';
import 'mint-ui/lib/style.css';

Vue.use(Mint);

// import specified component

import MtRadio from 'mint-ui/lib/radio';
import 'mint-ui/lib/radio/style.css';

Vue.component(MtRadio.name, MtRadio);

babel-plugin-component

  • Auto import css file
  • Modular import component

Installation

npm i babel-plugin-component -D

Usage

.babelrc

{
  "plugins": ["other-plugin", ["component", [
    { "libraryName": "mint-ui", "style": true }
  ]]]
}

Development

make dev

Production

make dist

Deploy Example

make deploy

License

MIT

About

Mobile UI elements for vue.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 79.7%
  • JavaScript 17.4%
  • CSS 1.9%
  • Other 1.0%