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

This is the snapshot of v0.1.1, the current version, as recorded on 2026-11-10. The live page runs its examples →

Changelog up to v0.1.1

v0.1.1

Patch Changes

  • 8fe9fb4: Declare "sideEffects": ["**/*.css"] so a bundler can drop the package when its exports are unused. Packages that build class names depend on @behivetech/get-class-name (a real dependency, kept external) instead of bundling their own copy of the helper, so an app loads it once.
  • Updated dependencies [8fe9fb4]
    • @behivetech/get-class-name@0.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.