Installation
npm install --save @types/react-otp-input
Summary
This package contains type definitions for react-otp-input (https://github.com/devfolioco/react-otp-input).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-otp-input.
import * as React from "react";
export interface OTPInputProps {
value: number | string;
onChange: any;
numInputs: number;
separator?: React.JSX.Element | undefined;
isDisabled?: boolean | undefined;
shouldAutoFocus?: boolean | undefined;
hasErrored?: boolean | undefined;
isInputNum?: boolean | undefined;
containerStyle?: string | React.CSSProperties | undefined;
inputStyle?: string | React.CSSProperties | undefined;
focusStyle?: string | React.CSSProperties | undefined;
disabledStyle?: string | React.CSSProperties | undefined;
errorStyle?: string | React.CSSProperties | undefined;
}
export default class extends React.Component<OTPInputProps> {}
Additional Details
- Last updated: Wed, 06 Dec 2023 06:36:35 GMT
- Dependencies: @types/react
Credits
These definitions were written by Anup Bhatkhande.