
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
qrcode-react-next
Advanced tools
一款基于 react 的二维码生成器
demo 试用地址:https://qkiroc.github.io/qrcode-react/
npm install qrcode-react-next
import {QRCode} from 'qrcode-react-next';
function component() {
return <QRCode value="test" />;
}
| 参数 | 类型 | 默认值 | 是否必填 | 说明 |
|---|---|---|---|---|
| value | string | - | 是 | 二维码的内容 |
| mode | 'svg' | 'canvas' | 'canvas' | 否 | 二维码的渲染模式 |
| config | QRCodeConfig | - | 否 | 二维码的配置,包括纠错级别、版本等 |
| styleConfig | QRCodeStyleConfig | - | 否 | 二维码的样式配置,包括大小、颜色、边距等 |
| logoConfig | QrCodeLogoConfig | - | 否 | 二维码中间的 logo 配置,包括图片路径、宽高等 |
| className | string | - | 否 | 自定义样式类名 |
| 参数 | 类型 | 默认值 | 是否必填 | 说明 |
|---|---|---|---|---|
| level | 'L'|'M'|'Q'|'H' | 'L' | 否 | 纠错级别 |
| minVersion | number | 1 | 否 | 最小版本 |
| maxVersion | number | 40 | 否 | 最大版本 |
| mask | number | - | 否 | 掩码模式(-1~7) |
| boostLevel | boolean | false | 否 | 是否提升纠错级别 |
| 参数 | 类型 | 默认值 | 是否必填 | 说明 |
|---|---|---|---|---|
| size | number | 200 | 否 | 二维码的大小 |
| margin | number | 4 | 否 | 二维码的边距 |
| color | string | '#000000' | 否 | 二维码的颜色 |
| bgColor | string | '#FFFFFF' | 否 | 二维码的背景颜色 |
| eyeType | 'default'| 'rounded' | 'circle' | 'default' | 否 | 码眼的类型 |
| eyeBorderSize | 'default' | 'sm' | 'xs' | 'default' | 否 | 码眼边框的大小 |
| eyeBorderColor | string | - | 否 | 码眼边框的颜色 |
| eyeInnerColor | string | - | 否 | 码眼内部的颜色 |
| pointType | 'default' | 'circle' | 'default' | 否 | 码点的类型 |
| pointSize | 'default' | 'sm' | 'xs' | 'default' | 否 | 码点的大小 |
| pointSizeRandom | boolean | false | 否 | 码点的大小是否随机 |
| 参数 | 类型 | 默认值 | 是否必填 | 说明 |
|---|---|---|---|---|
| src | string | - | 是 | logo 图片的路径 |
| width | number | 二维码大小的 1/5 | 否 | logo 图片的宽度 |
| height | number | 二维码大小的 1/5 | 否 | logo 图片的高度 |
| x | number | 居中 | 否 | logo 图片的 x 坐标 |
| y | number | 居中 | 否 | logo 图片的 y 坐标 |
FAQs
基于react的二维码生成器
We found that qrcode-react-next demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.