Skip to main content

QR Code

Draw a link as a code a phone camera reads, dark on white in either scheme.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
valuestring-The text the code holds, usually a link.
The text the code holds, usually a link.
labelstring-What the code opens, written under it and read to screen readers, such as "Yumma UI website".
What the code opens, written under it and read to screen readers, such as "Yumma UI website".
showValuebooleantrueWrites the address under the code, so people see where it goes before they scan.
Writes the address under the code, so people see where it goes before they scan.
modulessquare | rounded | dotsrounded
levelL | M | Q | HM
iconReactNode-A glyph in the middle, on a dark key, such as your app's mark.
A glyph in the middle, on a dark key, such as your app's mark.
sizesm | md | lgmdThe tile's width: 128, 192 or 256 pixels.
The tile's width: 128, 192 or 256 pixels.
shapenone | rounded | pillrounded
animatedbooleantrue
classNamestring-