UNPKG

@slashid/react-primitives

Version:

Primitive components for the /id React SDK

18 lines 681 B
type Props = { /** Callback to be called when the OTP value changes */ onChange: (otp: string) => void; /** Value of the OTP input */ value?: string; /** Number of OTP inputs to be rendered */ numInputs?: number; /** Whether the first input should be auto focused */ shouldAutoFocus?: boolean; /** The type that will be passed to the input being rendered */ inputType?: "text" | "number"; }; /** * OTP input component that handles OTP codes. */ export declare const OtpInput: ({ onChange, value, numInputs, shouldAutoFocus, inputType, }: Props) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=input.otp.d.ts.map