Skip to content

Kinplemelon/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/emqx-ui.css'

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

Releases

No releases published

Packages

No packages published

Languages

  • Vue 60.3%
  • TypeScript 22.8%
  • JavaScript 8.3%
  • SCSS 5.6%
  • HTML 3.0%