# f2-ui
**Repository Path**: okcoder/f2-ui
## Basic Information
- **Project Name**: f2-ui
- **Description**: No description available
- **Primary Language**: JavaScript
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2019-09-03
- **Last Updated**: 2022-01-05
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
F2UI
A lightweight Vue.js UI toolkit
# Install
Run the command below in your terminal to install F2UI first
```
npm install f2-ui --save
```
# Usage
## Global Use
Import in your entry script file and register it
```javascript
import LimeUI from 'f2-ui'
import "f2-ui/lib/styles/f2-ui.css"
Vue.use(F2UI)
```
### Example
```html
click
```
## On-demand Loading
Firstly, you should install `babel-plugin-component` in your project.
```
npm install babel-plugin-component
```
Configure your `.babelrc` file like this
```json
{
"plugins": [
["component", {
"libraryName": "f2-ui",
"libDir": "lib",
"styleLibrary": {
"name": "styles",
"base": false, // no base.css file
"path": "[module].css"
}
}]
]
}
```
The you can import component on demand, and you don't need to care about importing styles, the babel plugin will do it automaticly.
```javascript
import Vue from 'vue'
import { Button } from 'f2-ui'
Vue.component('f2-button', Button)
```