@nixjs23n6/qrcode-react
Version:
A React component to generate QRCode.
21 lines (20 loc) • 493 B
TypeScript
import React from 'react';
export interface QRCodePropArg {
value: string;
ecLevel?: 'L' | 'M' | 'Q' | 'H';
enableCORS?: boolean;
size?: number;
margin?: number;
bgColor?: string;
fgColor?: string;
qrStyle?: 'squares' | 'dots';
imageSettings?: ImageSettings;
className?: string;
}
export interface ImageSettings {
image?: string;
opacity?: number;
height?: number;
width?: number;
}
export declare const QRCode: React.FC<QRCodePropArg>;