horizon-ui

0.6.9 • Public • Published

Horizon UI Horizon UI

npm version npm downloads Github Stars Github Contributors PRs Welcome MIT License

This is a front-end component library based on Vue, design by Eyepetizer

Documentation

We have written a Documentation to introduce Horizon UI to developers and UI designers.

If you have any questions, please create issues to contact us.

Have fun!

Examples

Here are some mobile phone examples

examples

Install

yarn add horizon-ui

Quick Start

Import all components.

import Vue from 'vue'
import Horizon from 'horizon-ui'
import 'horizon-ui/static/theme.scss'

Vue.use(Horizon)

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

import Vue from 'vue'
import 'horizon-ui/static/theme.scss'
import {
  Feed,
  FeedCard,
  Loading,
  Toast
  // ...
} from 'horizon-ui'

Vue.use(Feed)
Vue.use(FeedCard)
Vue.use(Loading)
Vue.prototype.$toast = Toast

babel-plugin-component

  • Auto import css file
  • Modular import component

Installation

yarn add babel-plugin-component -D

Usage

.babelrc

{
  "plugins": [
    ["component",
      {
        "libraryName": "horizon-ui",
        "styleLibraryName": "~node_modules/horizon-ui/static"
      },
      "horizon-ui"
    ]
  ]
}

Homepage

Repository

LICENSE

MIT

Package Sidebar

Install

npm i horizon-ui

Weekly Downloads

3

Version

0.6.9

License

MIT

Unpacked Size

329 kB

Total Files

118

Last publish

Collaborators

  • liqiuqi
  • zhaoyuan98