# serein_ui

> 项目网站：[http://cnpm.dilomen.top:9000/](http://cnpm.dilomen.top:9000/)

Latest version **1.0.5** (published 2020-05-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install serein_ui
pnpm add serein_ui
yarn add serein_ui
bun add serein_ui
```

## 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.5 |
| Published | 2020-05-28 |
| First published | 2020-05-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 500.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | dilomen |

## Links

- npm: https://www.npmjs.com/package/serein_ui
- npm.io page: https://npm.io/package/serein_ui

## Dependencies (6)

- [react](https://npm.io/package/react.md) ^16.12.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.12.0
- [@types/react](https://npm.io/package/@types/react.md) ^16.9.35
- [@types/react-dom](https://npm.io/package/@types/react-dom.md) ^16.9.8
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^5.2.0
- [@types/react-router-dom](https://npm.io/package/@types/react-router-dom.md) ^5.1.5

## Recent versions

- 1.0.5 (latest) — 2020-05-28
- 1.0.3 — 2020-05-24
- 1.0.2 — 2020-05-24
- 1.0.0 — 2020-05-06

## README

# 开始

项目网站：[http://cnpm.dilomen.top:9000/](http://cnpm.dilomen.top:9000/)

## 安装

```bash
npm install -D serein_ui
```

```bash
yarn add -D serein_ui
```

## 使用

```jsx
import {Modal} from 'serein_ui'
import 'serein_ui/es/index.css'
ReactDOM.render(<Modal visible={true}>Hello Serein</Modal>, document.getElementById('root'))
`;
```

### 按需加载

```bash
yarn add -D serein-import
```

```bash
npm install -D serein-import
```

```js
const sereinImport = require("serein-import");
// 然后配置"babel"的plugins就大功告成了

plugins: [
        ...
        [
        sereinImport, { libraryName: "serein_ui", libraryDirectory: "es"},
        ],
    ],
}
```

// 代码就会被转化成指定的路径

```js
import { Button } from "serein_ui";
```

会被转化为

```js
import Button from 'serein_ui/es/Button/index.js
import 'serein_ui/es/Button/index.css
```

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