# qrcode2+
# Overview
Generates and displays a QR code.
# Child Components
Not supported
# Attributes
Supports common attributes
Name | Type | Default Value | Required | Description |
---|---|---|---|---|
value | string | - | Yes | The content used to generate the QR code |
# Styles
Supports common styles
Name | Type | Default Value | Required | Description |
---|---|---|---|---|
color | <color> | #000000 | No | QR code color |
background-color | <color> | #ffffff | No | QR code background color |
# Events
Supports common events
# Example Code
<template>
<div>
<qrcode value="https://iot.mi.com" style="color: #008cff;"></qrcode>
</div>
</template>