1. Collections Component Guide
  2. Show password input (experimental)
  3. With error
Show password input (experimental) example

With error

How it looks (preview)

Error: No it isn't

How to call this example

<%= render "govuk_publishing_components/components/show_password", {
  label: {
    text: "Please enter your password"
  },
  value: "this is my password",
  error_message: "No it isn't"
} %>