Zephora UI

Data

QRCode

Real QR code renderer (byte mode, versions 1-10) drawn as a single SVG path, with error correction levels, custom colors and an optional quiet zone.

Import

import { QRCode } from "@zephora/react";

Examples

Basic

Level, margin and colors

Higher error-correction levels survive more damage at the cost of density. `includeMargin` adds the 4-module quiet zone scanners expect.

API

QRCode props

PropTypeDefaultDescription
value *stringText encoded into the symbol.
sizenumber128Rendered size in px.
level"L" | "M" | "Q" | "H""M"Error correction level.
colorstringDark module color. Defaults to the theme foreground.
backgroundColorstringBackground color. Defaults to the theme background.
includeMarginbooleanfalseAdds the 4-module quiet zone around the symbol.
unstyledbooleanfalseHeadless mode — skips Zephora styling.