react-barcode-qrcode
Version:
A react library for generating qrcode and barcode.
22 lines (21 loc) • 446 B
TypeScript
import { CSSProperties } from 'react';
export type QrCodeProps = {
value: string;
size?: number;
level?: string;
bgColor?: string;
fgColor?: string;
style?: CSSProperties;
includeMargin?: boolean;
imageSettings?: ImageSettings;
renderType?: 'svg' | 'canvas';
};
type ImageSettings = {
src: string;
height: number;
width: number;
excavate: boolean;
x?: number;
y?: number;
};
export {};