You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unhappy with documentation design choice, im still confused how would i use this with a simple form and how will i use it and how will use it with react-hook-form and get the value of textbox
my code
importuseVerifyOtpfrom"@/hooks/auth/useVerifyOtp";import{InputOTP,InputOTPGroup,InputOTPSlot,//shadcn}from"@/components/other/OtpInput";exportdefaultfunctionOptForm(){const{ onSubmit, register, errors, isLoading }=useVerifyOtp();return(<formnoValidateonSubmit={onSubmit}><h3className="text-2xl text-secondary">Verification</h3><pclassName="text-dark">
Enter 4 digit OTP we sent you via email to continue
</p><InputOTPname="otp"maxLength={4}><InputOTPGroupname="pin"className="justify-center w-full"><InputOTPSlotclassName="min-w-14 md:min-w-20 w-full"index={0}/><InputOTPSlotclassName="min-w-14 md:min-w-20 w-full"index={1}/><InputOTPSlotclassName="min-w-14 md:min-w-20 w-full"index={2}/><InputOTPSlotclassName="min-w-14 md:min-w-20 w-full"index={3}/></InputOTPGroup></InputOTP><ButtonisLoading={isLoading}type="submit"className="w-full">
Verify
</Button></form>);}
The text was updated successfully, but these errors were encountered:
I'm unhappy with documentation design choice, im still confused how would i use this with a simple form and how will i use it and how will use it with react-hook-form and get the value of textbox
my code
The text was updated successfully, but these errors were encountered: