// AlignUI DigitInput v0.0.0 import * as React from 'react'; import { cn } from '@/utils/cn'; import OtpInput, { OTPInputProps } from 'react-otp-input'; type OtpOptions = Omit; type DigitInputProps = { className?: string; disabled?: boolean; hasError?: boolean; } & OtpOptions; function DigitInput({ className, disabled, hasError, ...rest }: DigitInputProps) { return ( ( )} {...rest} /> ); } DigitInput.displayName = 'DigitInput'; const DigitInputSlot = React.forwardRef< React.ComponentRef<'input'>, React.ComponentPropsWithoutRef<'input'> & { hasError?: boolean; } >(({ className, hasError, ...rest }, forwardedRef) => { return ( ); }); DigitInputSlot.displayName = 'DigitInputSlot'; export { DigitInput as Root };