Google's input field using tailwind css | Material mui input field

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

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

its not working peer-valid:-translate-y-5 in custom components but working in regular html input

BipinGurung-rsdy
Автор

How would you implement this for an Email field?
I cannot use the :valid modifier since if the email inputted is not valid the label will go back down.
Is there any other modifier I can use for when the input has any kind of text in it?

yz_codes