Toggle password visibility feature #696
Replies: 2 comments
-
We actually cover this in the Icons documentation as one of the examples. You can find a functioning demo here: Binding the behavior across inputs would be as simple as setting the |
Beta Was this translation helpful? Give feedback.
-
Excellent. Very cool. For some reason, I assumed those icons were just going to be static. But as it so often happens... I'm reminded that we can make pretty much anything happen. Thank you! |
Beta Was this translation helpful? Give feedback.
-
I'm curious if there are any paths in FormKit for password visibility toggles.
There's already a spot in the markup where the appended icons can go, but I don't see any discussion about it. Here's a quick CodePen: https://codepen.io/perpetual-education/pen/poxpObG
If there's not already one that I'm not seeing, then I'd like to request this. : )
I'd also like the added bonus of connecting a password and a password confirmation field so that the toggle is optionally toggled on both fields (when noted as connected).
I'll also look into the "Create your own field" story.
🔓
Beta Was this translation helpful? Give feedback.
All reactions