1 | <div align="center">
|
2 | <img width="80" align="center" src="https://image-1256107964.cos.ap-beijing.myqcloud.com/blog/2019-02-22-logo.jpg">
|
3 | </div>
|
4 | <h1 align="center">Semon UI</h1>
|
5 | <div align="center">
|
6 |
|
7 | [![Build Status](https://travis-ci.org/Hoofoo-WHU/semon-ui.svg?branch=master)](https://travis-ci.org/Hoofoo-WHU/semon-ui-react)
|
8 | [![License](https://img.shields.io/github/license/hoofoo-WHU/semon-ui.svg?style=flat)](LICENSE)
|
9 | ![David](https://img.shields.io/david/dev/hoofoo-whu/semon-ui.svg)
|
10 | [![install size](https://packagephobia.now.sh/badge?p=@semon/semon-ui@0.0.2)](https://packagephobia.now.sh/result?p=@semon/semon-ui@0.0.2)
|
11 | ![downloads](https://img.shields.io/npm/v/@semon/semon-ui.svg)
|
12 | ![version](https://img.shields.io/npm/dt/@semon/semon-ui.svg)
|
13 |
|
14 | </div>
|
15 |
|
16 | ## ✨ 介绍
|
17 | 一套简单的React组件库,目的是练手,不要在项目中使用
|
18 |
|
19 | ## 📦 安装
|
20 | ```shell
|
21 | npm install @semon/semon-ui --save
|
22 | ```
|
23 | ```shell
|
24 | yarn add @semon/semon-ui
|
25 | ```
|
26 |
|
27 | ## 🚀 开始使用
|
28 | ```jsx
|
29 | import { Button } from '@semon/semon-ui'
|
30 | ReactDOM.render(<Button />, container)
|
31 | ```
|
32 | 引入css样式:
|
33 | ```js
|
34 | import '@semon/semon-ui/dist/index.css'
|
35 | ```
|
36 | 按需引入:
|
37 | ```jsx
|
38 | import Button from '@semon/semon-ui/dist/Button'
|
39 | import '@semon/semon-ui/dist/Button.css'
|
40 | ```
|
41 |
|
42 | ```js
|
43 | [
|
44 | "import",
|
45 | {
|
46 | "libraryName": "@semon/semon-ui",
|
47 | "libraryDirectory": "dist",
|
48 | "style": (name) => `@semon/semon-ui/dist/${name}.css`
|
49 | }
|
50 | ]
|
51 |
|
52 | ``` -->
|
53 | ## 🔗 链接
|
54 | - [更新日志](CHANGELOG.md) |
\ | No newline at end of file |