react-qrcode
Version:
🤳 A React component for QR code generation with `qrcode`
19 lines • 530 B
JavaScript
import { createElement } from 'react';
import { useQRCode } from './use-qrcode.js';
export const QRCode = ({ color, errorCorrectionLevel, margin, maskPattern, quality, scale, toSJISFunc, type, value, version, width, ...props }) => createElement('img', {
...props,
src: useQRCode({
color,
errorCorrectionLevel,
margin,
maskPattern,
quality,
scale,
toSJISFunc,
type,
value,
version,
width,
}),
});
//# sourceMappingURL=qrcode.js.map