Get StartedComponentsStylingThemingMath & Science
MCP

Data

QR Code

Dependency-free QR codes with an optional logo overlay.

Markdown

Import

tsx
import { QrCode } from "@indoku/ui"

Examples

Basic usage

I

Props

Root

PropTypeDefaultDescription
value*string–
levelQrLevelMError-correction level. Raised automatically while the data still fits (see noBoost).
noBoostboolean–Disable the automatic level upgrade.
quietZonenumber2White margin in modules (spec says 4, 2 is usually still readable).
fillstringnear blackDark module color.
backgroundstringwhiteBackground color. A QR code needs contrast, so it does not follow dark mode.
labelstringQR codearia-label of the SVG.
childrenReact.ReactNode–

* required. Style props and HTML attributes are accepted as well.

Created by @indokudev