kyy-ui

0.0.30 • Public • Published

kyy-ui

Install

Run the command below in your terminal to install limeUI first

npm install kyy-ui --save

Usage

Global Use

Import in your entry script file and register it

import KyyUI from 'kyy-ui'
import "lime-ui/lib/styles/kyy-ui.css"

Vue.use(KyyUI)

Example

<kyy-button>click</kyy-button>

On-demand Loading

Firstly, you should install babel-plugin-component in your project.

npm install babel-plugin-component

Configure your .babelrc file like this

{
  "plugins": [
    [
      "component",
      {
        libraryName: "kyy-ui",
        styleLibrary: {
          name: "styles",
          // same with styleLibraryName
          base: false
          // if theme package has a base.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.

import Vue from 'vue'
import {kyyButton} from 'kyy-ui'

Vue.component('kyy-button', kyyButton)

Readme

Keywords

Package Sidebar

Install

npm i kyy-ui

Weekly Downloads

1

Version

0.0.30

License

ISC

Unpacked Size

234 kB

Total Files

37

Last publish

Collaborators

  • kaoyaya