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)
How to call this example
<%= render "govuk_publishing_components/components/password_input", {
error_text: "Enter a password"
} %>