@kolluax
You can leverage the display pattern feature in foundation components for this use case. With display pattern, the behavior works as follows: when the field loses focus, it shows a masked display value (for example, with asterisks), and when the field regains focus, it reveals the original ...