I'm developing a module and in the settings page I've inserted a
text field to allow users to insert a key.
I thought to change this into a
password field but I want to also create a Show password button or a checkbox. How could I implement this functionality?