Skip to content

kendankendan/emqx-ui

 
 

Repository files navigation

emqx-ui

🌌 EMQ X UI Library.

Usage

Install package

yarn add @emqx/emqx-ui

main.js

import { createApp } from 'vue'
import EmqxUI from '@emqx/emqx-ui'
import '@emqx/emqx-ui/lib/styles/index.scss'

const app = createApp(App)
app.use(EmqxUI)

component.vue

<template>
  <emqx-button>Test</emqx-button>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'App',
})
</script>

<style lang="scss"></style>

Set custom theme

Create a new theme file.

emqx-ui-variables.scss

/* theme color */
$--color-primary: $custom-color;

/* icon font path, required */
$--font-path: '~element-plus/lib/theme-chalk/fonts';

@import "~element-plus/packages/theme-chalk/src/index";

main.js

import './emqx-ui-variables.scss'

Project setup

Run server demo

# Install dependencies
yarn install

# Compiles and hot-reloads for development
yarn serve

Build npm package lib

# Build to lib
yarn lib

# Publish package
npm publish

Thanks

Powered by Vue.js 3.0 and element-plus

About

EMQ X UI Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 60.9%
  • TypeScript 18.2%
  • SCSS 16.1%
  • JavaScript 3.7%
  • HTML 1.1%