https://github.com/ElemeFE/mint-ui
Mobile UI elements for Vue.js
https://github.com/ElemeFE/mint-ui
component mobile ui-kit vue vue-components
Last synced: about 1 month ago
JSON representation
Mobile UI elements for Vue.js
- Host: GitHub
- URL: https://github.com/ElemeFE/mint-ui
- Owner: ElemeFE
- License: mit
- Created: 2016-05-17T09:54:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-02-28T17:06:11.000Z (about 3 years ago)
- Last Synced: 2025-03-11T15:12:52.652Z (about 1 month ago)
- Topics: component, mobile, ui-kit, vue, vue-components
- Language: Vue
- Homepage: http://mint-ui.github.io/#!/en
- Size: 3.26 MB
- Stars: 16,541
- Watchers: 473
- Forks: 3,546
- Open Issues: 292
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING_en-us.md
- License: LICENSE
Awesome Lists containing this project
- favorite-link - Vue.js 的移动 UI 元素。
- my-awesome - mint-ui - Mobile UI elements for vue.js (Vue)
- awesome-made-by-chinese - mint-ui
- awesome-vue - mint-ui - Vue 2的移动UI元素 (UI组件)
- awesome-github-vue - mint-ui - Vue 2的移动UI元素 (UI组件)
- awesome - mint-ui - Vue 2的移动UI元素 (UI组件)
- awesome-github-vue - mint-ui - Vue 2的移动UI元素 (UI组件)
- awesome-vue - mint-ui - ui?style=social) - Vue 2的移动UI元素 (UI组件)
- awesome-quick-dev - mint-ui - ui?style=flat-square) (WebUI / 基础样式库)
README
# Mint UI
[](https://travis-ci.org/ElemeFE/mint-ui)
[](https://www.npmjs.com/package/mint-ui)
[](https://npmjs.org/package/mint-ui)


[](https://gitter.im/ElemeFE/mint-ui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)> Mobile UI elements for **Vue 2.0**
- [Homepage](http://mint-ui.github.io)
- [Documentation](http://mint-ui.github.io/docs)## Installation
```shell
npm i mint-ui -S# for Vue 1.x
npm i mint-ui@1 -S
```## Usage
Import all components.
```javascript
import Vue from 'vue';
import Mint from 'mint-ui';
import 'mint-ui/lib/style.css';Vue.use(Mint);
```Or import specified component. (Use [babel-plugin-component](https://www.npmjs.com/package/babel-plugin-component))
```javascript
import { Cell, Checklist } from 'mint-ui';Vue.component(Cell.name, Cell);
Vue.component(Checklist.name, Checklist);
```Equals to
```javascript
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 componentInstallation
```shell
npm i babel-plugin-component -D
```Usage
.babelrc
```json
{
"plugins": ["other-plugin", ["component", [
{ "libraryName": "mint-ui", "style": true }
]]]
}
```## CDN
RawGit- https://cdn.rawgit.com/ElemeFE/mint-ui/master/lib/index.js
- https://cdn.rawgit.com/ElemeFE/mint-ui/master/lib/style.cssNPMCDN
- https://unpkg.com/mint-ui/lib/index.js
- https://unpkg.com/mint-ui/lib/style.css## Development
```shell
npm run dev
```## Contribution
Please make sure to read the [Contributing Guide](https://github.com/ElemeFE/mint-ui/blob/master/.github/CONTRIBUTING_en-us.md) before making a pull request.## License
MIT