@sikka/hawa
Version:
Modern UI Kit made with Tailwind
42 lines (39 loc) • 2.35 kB
text/typescript
import * as input_otp from 'input-otp';
import { OTPInputProps } from 'input-otp';
import * as React from 'react';
declare const PinInputRoot: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "maxLength" | "value" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
value?: string;
onChange?: (newValue: string) => unknown;
maxLength: number;
textAlign?: "left" | "center" | "right";
onComplete?: (...args: any[]) => unknown;
pushPasswordManagerStrategy?: "increase-width" | "none";
containerClassName?: string;
noScriptCSSFallback?: string | null;
} & {
render: (props: input_otp.RenderProps) => React.ReactNode;
children?: never;
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "maxLength" | "value" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
value?: string;
onChange?: (newValue: string) => unknown;
maxLength: number;
textAlign?: "left" | "center" | "right";
onComplete?: (...args: any[]) => unknown;
pushPasswordManagerStrategy?: "increase-width" | "none";
containerClassName?: string;
noScriptCSSFallback?: string | null;
} & {
render?: never;
children: React.ReactNode;
} & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
declare const PinInputGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
declare const PinInputSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
index: number;
} & React.RefAttributes<HTMLDivElement>>;
declare const PinInputSeperator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
type PinInputProps = Omit<OTPInputProps, "render"> & {
separatorPosition?: number;
helperText?: any;
};
declare const PinInput: React.FC<PinInputProps>;
export { PinInput, PinInputGroup, PinInputRoot, PinInputSeperator, PinInputSlot };