what i struggle now with is to make the input a different type. so for emails - a text type and for password - a password type. The problem is that if i change the input type inside the main component it is changed for all instances at once and for specific instance i can’t change input type without entering component edit.
More of that, i can’t directly bind the input type to a property. And Ai suggest some weird thing with code which i don’t understand as a designer not a developer
pls advice, appreciate any help. Cheers.
P.S. i suppose the solution would be not to use this custom built textarea as a component, then i will be able to adjust input type directly for each separate input. But that’s way too easy and not very good for scaling a project in future.
Hi, thanks for your reply. The second version sounds interesting. so i need to place inside the master component all possible input types and then show only 1 at a time binded to the property “select” somehow?
ok i found the best option is to duplicate the component, rename it and change input type inside it separately. The issue now is that all my variables are enclosed inside components and even making them visible outside of component doesn’t help and Supabase auth workflow can’t see the variables anyhow inside the components… i read some info here that i need some workaround functions/workflows to read those variables but that’s too much work for me being a no coder person