goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
28 lines • 1.04 kB
TypeScript
import { FC } from 'react';
import { QRCodeStyles } from '../../theme/qrcode';
import { ButtonProps } from '../Button';
import { ConfirmationCodeInputsProps } from '../ConfirmationCodeInput';
export interface QRCodeProps {
value?: string;
size?: number;
level?: 'L' | 'M' | 'Q' | 'H';
bgColor?: string;
fgColor?: string;
title?: string;
showVerifyButton?: boolean;
onVerify?: () => void | Promise<void>;
onDisableVerification?: () => void | Promise<void>;
verifyButtonProps?: Partial<ButtonProps>;
disableVerificationButtonProps?: Partial<ButtonProps>;
showSuccessState?: boolean;
successMessage?: string;
showConfirmationInput?: boolean;
confirmationCode?: string;
onConfirmationCodeChange?: (value: string) => void;
confirmationCodeProps?: Partial<ConfirmationCodeInputsProps>;
onSecretGenerated?: (secret: string) => void;
styles?: QRCodeStyles;
}
declare const QRCodeComponent: FC<QRCodeProps>;
export default QRCodeComponent;
//# sourceMappingURL=index.d.ts.map