# @brucelikk/brc-ui-react

> 一个狠好使的React + TS组件库! / a React+TS based highly popular management component ui lib!

Latest version **1.0.9** (published 2023-08-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install @brucelikk/brc-ui-react
pnpm add @brucelikk/brc-ui-react
yarn add @brucelikk/brc-ui-react
bun add @brucelikk/brc-ui-react
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2023-08-13 |
| First published | 2023-08-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 477.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | brucelikk |
| Maintainers | brucelikk |
| Keywords | table, form, menu, header, popup, btn-group, uploader |

## Links

- npm: https://www.npmjs.com/package/@brucelikk/brc-ui-react
- Repository: https://gitee.com/LiShuaizi/brc-ui-react
- npm.io page: https://npm.io/package/@brucelikk/brc-ui-react

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2023-08-13
- 1.0.8 — 2023-08-13
- 1.0.7 — 2023-08-13
- 1.0.6 — 2023-08-12
- 1.0.5 — 2023-08-12
- 1.0.4 — 2023-08-12
- 1.0.2 — 2023-08-10
- 1.0.1 — 2023-08-10

## README

## @安装使用



#### 安装BRC UI

```
# 没有安装nrm源管理工具时...
npm i -g nrm

# NPM全局切换到官方源
nrm use npm

# 安装BRC UI/React
npm i @brucelikk/brc-ui-react
```



####  使用BRC弹窗



```react
import React, { useState } from "react";

// 引入BRC弹窗
import { BrcPopup } from "@brucelikk/brc-ui-react";

export default function PopupDemo() {
  // 用一个state控制要不要显示弹窗
  const [showPopup, setShowPopup] = useState(false);

  return (
    <div>
      <h3>PopupDemo</h3>
      <button onClick={() => setShowPopup(true)}>显示弹窗</button>

      {/* 需要时显示弹窗显示弹窗 */}
      {showPopup && (
        // closer={setShowPopup} 告诉组件哪个state在控制弹窗的显隐 它好在必要时帮你关闭弹窗
        // title="我的弹窗" 弹窗标题
        // onConfirm={() => console.log("已确定")} 点击确定时的回调
        // <p>This is a modal content</p> 自定义弹窗内容
        <BrcPopup
          closer={setShowPopup}
          title="我的弹窗"
          onConfirm={() => console.log("已确定")}
        >
          <p>This is a modal content</p>
        </BrcPopup>
      )}
    </div>
  );
}
```



#### 使用BRC递归菜单

```react
import {} from "react";
import "./App.css";
import {BrcRecursiveMenu} from "@brucelikk/brc-ui-react";
import menuItems from "./assets/menuItems";
function App() {
  return (
    <>
      <div className="wrapper">
        <div className="nav">
          <BrcRecursiveMenu items={menuItems} />
        </div>
      </div>
    </>
  );
}

export default App;
```

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