QRCode is the React qr-code generator.
This is a lightweight React demo to use the v-qr-code-next module. Try online version on StackBlitz.
<QRCode mode="image" value="Hello RUI!" /><QRCode mode="image" value="Hello RUI!" />
Basic usage of QRCode component.
| Properties | Description | Type | Default |
|---|---|---|---|
| value | the value of qr-code, mandatory | string | - |
| num | the type number, optional | number | 8 |
| level | the error Correction Level, optional value: L, M, Q, H | string | L |
| mode | the render mode of qr-code, optional value: image, svg, table, dataurl | string | image |
| border | whether to show the border wrapper, optional | boolean | false |
| color | the color of qr-code, optional | string | - |