Really useful, thank you! I've replicated everything from above and have run in to a bit of trouble when I have multiple inputs fields.
Typing in to one field sets the isActive state to true, as a result adding the label styling to all inputs, not just the single input I have populated. Any suggestions on how to work around this?
Separate this input into a component and use that component instead so that each input will have a different isActive state, or manually create a different property isActive for each input you will use
Really useful, thank you! I've replicated everything from above and have run in to a bit of trouble when I have multiple inputs fields.
Typing in to one field sets the isActive state to true, as a result adding the label styling to all inputs, not just the single input I have populated. Any suggestions on how to work around this?
Thanks
Separate this input into a component and use that component instead so that each input will have a different isActive state, or manually create a different property isActive for each input you will use
Insted of using a className, I add the "required" Attribute on input, and in the css use "valid" insted "focus-within".
The result is similar, i donΒ΄t use the transform
Here is a part of my code:
CSS
index.js