Password input example

With error

If there is a validation error, passing error text will style the password input component with error styles, and semantically state that there was a validation error.

How it looks (preview)

Error: Enter a password

How to call this example

<%= render "govuk_publishing_components/components/password_input", {
  error_text: "Enter a password"
} %>