# @race-ui/components

> react component

Latest version **0.0.8** (published 2021-09-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install @race-ui/components
pnpm add @race-ui/components
yarn add @race-ui/components
bun add @race-ui/components
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2021-09-30 |
| First published | 2021-09-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 68.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | zhangkun |
| Maintainers | zhang123456 |

## Links

- npm: https://www.npmjs.com/package/@race-ui/components
- Repository: https://zzu1@bitbucket.org/zzu1/race-ui
- Homepage: https://bitbucket.org/zzu1/race-ui#readme
- Issues: https://bitbucket.org/zzu1/race-ui/issues
- npm.io page: https://npm.io/package/@race-ui/components

## Recent versions

- 0.0.8 (latest) — 2021-09-30
- 0.0.7 — 2021-09-30
- 0.0.6 — 2021-09-26
- 0.0.5 — 2021-09-26

## README

## @race-ui/components 说明文档

react 基础组件库。 具体细节请查看 [examples](http://111.229.90.254:5057/components)

### 安装

```shell
npm install @race-ui/components --save
```

### 组件引入
```javascript
import { Button } from '@race-ui/components';

// 全局引入组件库所有样式
import '@race-ui/components/assets/index.css';
```

### 样式引入

#### (1)全局引入组件库所有样式（推荐）
```javascript
import '@race-ui/components/assets/index.css';
```

#### (2)按需引入组件库样式
手动添加
```javascript
import '@race-ui/components/esm/button/style/index.css';
```
webpack plugin 配置(选择按需加载推荐此种方式)
```javascript
npm install babel-plugin-import@1.13.3 --save-dev

// babel config plugin
[
  'import', 
    { 
      libraryName: '@race-ui/components',
      libraryDirectory: 'esm',
      style: true
    }, 
  '@race-ui/components'
]
```

### 注意
该React Component公共库样式比较简陋，在实际应用中，需要再次封装成项目需要的UI，使用成本比较高。

当前市面上公共库（antd, element-ui等）都是带有完整样式的，但是在实际应用到项目时（除一些开发人员可以随意发挥的项目），
会重置掉几乎所有样式，徒增代码量和维护成本。

---
_Source: https://npm.io/package/@race-ui/components · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
