@devmehq/react-qr-code
Version:
React component to generate QR codes
23 lines • 608 B
TypeScript
/// <reference types="react" />
export type ReactQrCodeImageProps = {
src: string;
height: number;
width: number;
excavate?: boolean;
x?: number;
y?: number;
};
export type ReactQrCodeProps = {
value: string;
size?: number;
level?: 'L' | 'M' | 'Q' | 'H';
bgColor?: string;
fgColor?: string;
marginSize?: number;
style?: Record<string, string>;
renderAs?: 'svg' | 'canvas';
images?: ReactQrCodeImageProps[];
};
export declare function ReactQrCode(props: ReactQrCodeProps): JSX.Element;
export default ReactQrCode;
//# sourceMappingURL=index.d.ts.map