@particle-network/auth-core-modal
Version:
Auth Core provides MPC (Multi-Party Computation)-based threshold signatures.
22 lines (21 loc) • 685 B
TypeScript
import React from 'react';
declare const allowedCharactersValues: readonly ["alpha", "numeric", "alphanumeric"];
export type AuthCodeProps = {
allowedCharacters?: (typeof allowedCharactersValues)[number];
ariaLabel?: string;
autoFocus?: boolean;
containerClassName?: string;
disabled?: boolean;
inputClassName?: string;
isPassword?: boolean;
length?: number;
placeholder?: string;
onChange: (res: string) => void;
code?: string;
};
export type AuthCodeRef = {
focus: () => void;
clear: () => void;
};
declare const AuthCode: React.ForwardRefExoticComponent<AuthCodeProps & React.RefAttributes<AuthCodeRef>>;
export default AuthCode;