Closed ImamJanjua closed 2 months ago
You can use OnComplete to do it
<InputOTP onComplete={(e: string) => onComplete(e)} maxLength={6}>
<InputOTPGroup>
<InputOTPSlot index={0} />
<InputOTPSlot index={1} />
<InputOTPSlot index={2} />
</InputOTPGroup>
<InputOTPSeparator />
<InputOTPGroup>
<InputOTPSlot index={3} />
<InputOTPSlot index={4} />
<InputOTPSlot index={5} />
</InputOTPGroup>
</InputOTP>
Check out @NicolasCassunde response
Hi, how can i perform some action after the user has filled all the required input fields. But like without a button to submit?