Behive Tech Component Registry

QR Code

v0.1.0Draft

A QR code drawn as inline SVG for any value: one white plate and one path of black modules, rendered synchronously so it works in server components and prints crisply at any size.

pnpm add @behivetech/atoms.qr-code

Published to npm.pkg.github.com

  • v0.1.0 · current

Changelog

v0.1.0

Minor Changes

  • 63f27da: New atoms.qr-code: a QR code as inline SVG (one white plate, one path of black modules) that renders synchronously on the server. Props value, label (required, the accessible name), size in rem with a 6rem floor, errorCorrection and margin. An unencodable value renders a dashed box of the same size instead of throwing.

    Also exports canEncodeQr(value, errorCorrection?), which says whether a value fits in a code.