# yh-react-qrbtf

> A Collection of Components with beautiful QRCode styles

Latest version **1.0.1** (published 2022-01-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install yh-react-qrbtf
pnpm add yh-react-qrbtf
yarn add yh-react-qrbtf
bun add yh-react-qrbtf
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-01-19 |
| First published | 2022-01-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 1.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yijun |
| Maintainers | babykaokao |
| Keywords | react, qrcode |

## Links

- npm: https://www.npmjs.com/package/yh-react-qrbtf
- Repository: https://github.com/eleven-huang/react-qrbtf
- Homepage: https://qrbtf.com/
- Issues: https://github.com/eleven-huang/react-qrbtf/pulls
- npm.io page: https://npm.io/package/yh-react-qrbtf

## Dependencies (6)

- [react](https://npm.io/package/react.md) ^17.0.2
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [reactcss](https://npm.io/package/reactcss.md) ^1.2.3
- [react-css](https://npm.io/package/react-css.md) 0.0.2
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.2
- [react-scripts](https://npm.io/package/react-scripts.md) 3.4.1

## 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.1 (latest) — 2022-01-19
- 1.0.0 — 2022-01-18

## README

# [React Qrbtf](https://github.com/CPunisher/react-qrbtf)

[![Npm Version][npm-version-image]][npm-version-url]
[![License][license-image]][license-url]

- **6 Different QRCode Styles** - Change the parameters to show your favourite 

- **Make Your Own** - Use the API to make your own QRCode styles

## Demo

![QR codes](https://github.com/ciaochaos/qrbtf/raw/master/public/img/QRcodes.jpg)

[**Live Demo**](https://qrbtf.com)

### Installation & Usage

```sh
npm install yh-react-qrbtf --save
```

### Docs

[Read docs here](https://github.com/eleven-huang/react-qrbtf.git)

### Include the Componet

```js
import React from 'react'
import { QRNormal } from 'yh-react-qrbtf'

class Component extends React.Component {

    render() {
        return <QRNormal value="https://qrbtf.com" />
    }
}
```

### 二维码中间图标参数

- icon: 图标地址，支持 jpg/png/svg等，gif动态图没测试过
- iconScale: 图标大小比例，不超过 0.33(默认)
- title: 显示的文字
- titleSize: 文字大小, 默认 12px
- titleColor: 文字颜色, 默认 黑色
- titleAlign: 文字位置, 支持 middel|bottom

> 说明：

> - titleSize、titleColor、titleAlign 三个参数也支持从 styles.title 中取值，分别对应 fontSize、color、verticalAlign
> - 如果在 styles.title 中设置 fontSize，请用数字（也即是不要带 px）
> - 文字位置默认值：如果有 icon，在二维码底部，否则居中。文字多的情况下建议传参 bottom，不会自动换行

[npm-version-image]: https://img.shields.io/npm/v/react-qrbtf
[npm-version-url]: https://www.npmjs.com/package/react-qrbtf
[license-image]: http://img.shields.io/npm/l/react-qrbtf.svg
[license-url]: LICENSE

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