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

You are viewing QR Code v0.1.0, snapshotted 2026-11-09. The latest is v0.1.1. Go to the latest →

Changelog up to v0.1.0

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.