Skip to content

fossabot/zarm-web

 
 

Repository files navigation

Zarm-Web

众安科技桌面端UI组件库,基于React。

Version 版本

  • 历史版本:npm package FOSSA Status
  • 开发版:暂未发布

Install 安装

使用npm安装:

npm install zarm-web --save

或者通过cdn引入umd模块:

<link rel="stylesheet" href="https://unpkg.com/zarm-web@latest/dist/zarm-web.min.css">
<script type="text/javascript" src="https://unpkg.com/zarm-web@latest/dist/zarm-web.min.js"></script>

Usage 使用

全组件引入

import { Button, Cell } from 'zarm-web';
import 'zarm-web/dist/zarm-web.min.css';

按需加载

  • 方法一(推荐)

使用 babel-plugin-import 自动加载Sass文件

  // .babelrc or babel-loader option
  {
    "plugins": [
      ['import', {
        libraryName: 'zarm-web',
        style: true,
      }],
    ]
  }
import { Button, Cell } from 'zarm-web';
  • 方法二:
import Button from 'zarm-web/lib/button';
import 'zarm-web/lib/button/style';

定制主题

通过修改css变量定义达到定制主题的效果

document.documentElement.style.setProperty('--theme-primary', '#108ee9');

变量名可参考 variable.scss

Changelog 更新日志

CHANGELOG.md

License

MIT

FOSSA Status

About

基于React的桌面端UI组件库

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 58.3%
  • CSS 23.6%
  • JavaScript 17.8%
  • Other 0.3%