Zent ( \ˈzent\ ), a collection of essential UI components written with React.
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 协议,请自由地享受和参与开源。