nextuiq
Version:
NextUIQ is a modern, lightweight, and developer-friendly UI component library for React and Next.js. Built with TypeScript and Tailwind CSS, it offers customizable, accessible, and performance-optimized components with built-in dark mode, theme customizat
16 lines (15 loc) • 620 B
TypeScript
import { InputHTMLAttributes } from 'react';
export interface OTPInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'type' | 'maxLength' | 'className'> {
length?: number;
value?: string;
onChange?: (value: string) => void;
disabled?: boolean;
error?: boolean;
hint?: string;
className?: string;
label?: string;
description?: string;
inputType?: 'numeric' | 'alphanumeric' | 'any';
}
export declare const OTPInput: import('react').ForwardRefExoticComponent<OTPInputProps & import('react').RefAttributes<HTMLDivElement>>;
export default OTPInput;