Git Product home page Git Product logo

zent's Introduction

有赞logo

Zent logo

Zent ( \ˈzent\ ), a collection of essential UI components written with React.

Build Status CircleCI npm version downloads PRs Welcome

NPM

安装

yarn add zent

# or

npm install zent --save

使用组件

import { Button } from 'zent';
ReactDOM.render(<Button>Zent</Button>, somenode);

引入样式

// 引入scss文件
import 'zent/assets/index.scss';

// 直接使用css
import 'zent/lib/index.css';

单独使用某个组件

如果你只需要某一个组件,Zent 支持单独引入某一个组件。如果你只用到了很少几个 Zent 组件,这种方式可以帮助减小最终打包出来的文件大小。

我们以 Button 组件为例。

// 只引入Button的代码
import Button from 'zent/button';

// Button的样式文件
import 'zent/button/lib/index.css';

贡献代码

使用过程中发现任何问题都可以提 Issue 给我们,当然,我们也非常欢迎你给我们发 PR

修改代码请阅读我们的开发指南

开源协议

本项目基于 MIT 协议,请自由地享受和参与开源。

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.