Show password input (experimental) example
With attributes
The component accepts many but not all of the options that can be passed to a regular input, including id
, name
and describedby
(not shown).
How it looks (preview)
How to call this example
<%= render "govuk_publishing_components/components/show_password", {
label: {
text: "Please enter your password"
},
value: "this is my password",
id: "custom_id",
name: "custom_name"
} %>