React OTP Input Field With Typescript & Tailwind CSS

preview_player
Показать описание

In this video we will take a look at how we can create OTP field using react and tailwindcss.

Social Media Links

#tailwindcss #react
Рекомендации по теме
Комментарии
Автор

You know a great teacher when the same logic applies to a different concept... Thank you and God bless!

wisdomeshiet
Автор

Great Tutorial! Thanks more video to come

georgesoriano
Автор

this is amazing.
u help me solve the bug that took me four days .
thank you

adiodamilare
Автор

Thanks, it helped me too much, a hug from Brazil!!

pedroh.belchioralves
Автор

That's amazing! Thanks for this tutorial

robertoribeiro
Автор

Amazing content and explanation, thanks!

codebreaker
Автор

awesome tutorial that was so helpfull for me

shinnthantminn
Автор

Great explanation and video! Just in time to help me with a task I am working on! Thanks for sharing and congrats for the content!!

jennifermagpantay
Автор

Well done man, and thanx a lot for hint ^_^

hwkmtqk
Автор

great tutorial! but I guess, the string slicing method is not required in an OTP field if you just use the maxLength property inside the input tag

MDMinhazulAlamChowdhury
Автор

Please if you are using react js you might have issues after follow all the steps just add this block of code to make it work fyn
const handleOnKeyDown = (e, index) => {
currentOTPIndex = index;
if (e.key === "Tab") {
e.preventDefault();
+ 1);
}
if (e.key === "Backspace" && !e.target.value) {
e.preventDefault();
- 1);
}
};

kukasn
Автор

Thanks alot, need this component for my day job.

sallehshah
Автор

I want to start react native. Are you planning to make react native coourse? You have videos on it. But im not sure if that would be enough.

AkshaySingh-uwkj
Автор

Would you like to make one for entering dates, and a regex to determine the numbers of days, month and year?

brasilverdeamarelo.
Автор

Could u show login and logout in react with out google login

philip.thomas
Автор

Help!!! I am using this otp input component....when I passing this otp value string or OTP array to its parent comp. Through setstate...its not working

gauravverma
Автор

In case of user skip some input let's say [1]-[ ]-[3]-[ ]-[5] when i press backspace at last input (5) the number 5 and 3 not deleted and after debugging I saw that onChange event did not fire but onKeyDown did.
Do you have any idea how to fix this issue?

Shoutiez
Автор

You cannot copy and paste a verification code to this input box. It will just take the last digit and fill the first input.

aravindsanjeev
Автор

Nice one, but there is a big issue with this video. Unfortunately, you did not provide the full working code for people to check. Getting the code from your video is not easy since you talk too fast and move the screen and cursor quickly which makes it difficult for people to follow.

yasserhy
Автор

Not good coding practices used. Many features are missing such as pasting of otp.

soulemotionshorts