1. Collections Component Guide
  2. Show password input (experimental)
  3. With attributes
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"
} %>