Socket
Socket
Sign inDemoInstall

@emqx/emqx-ui

Package Overview
Dependencies
71
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @emqx/emqx-ui

EMQ X UI Library


Version published
Weekly downloads
37
decreased by-9.76%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 24 Sep 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc