GithubHelp home page GithubHelp logo

fossabot / zarm-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeromelin/zarm-web

0.0 0.0 0.0 11.33 MB

基于React的桌面端UI组件库

Home Page: https://zarm-web.netlify.com

License: MIT License

JavaScript 17.76% CSS 23.58% TypeScript 58.33% Shell 0.14% HTML 0.18%

zarm-web's Introduction

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

zarm-web's People

Contributors

bestdingsheng avatar chrishchen avatar clearfixed avatar fossabot avatar hzzheng avatar jeromelin avatar kevinlvhsl avatar kinsliy avatar krystal-wang-bg avatar lencx avatar lsert avatar nancyzhujy avatar sanheng avatar sunxiaoju avatar xiaoshuangli avatar zabaas avatar zhonganwurenjie avatar zwblogone avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.