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

With error items

How it looks (preview)

Error: Look I keep telling you
This isn't your password

How to call this example

<%= render "govuk_publishing_components/components/show_password", {
  label: {
    text: "Please enter your password"
  },
  value: "this is my password",
  error_items: [
    {
      text: "Look I keep telling you"
    },
    {
      text: "This isn't your password"
    }
  ]
} %>