UNPKG

govuk-frontend

Version:

GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.

18 lines (17 loc) 1.23 kB
<div class="govuk-form-group govuk-form-group--error govuk-password-input" data-module="govuk-password-input"> <label class="govuk-label" for="password-input-with-error-message"> Password </label> <div id="password-input-with-error-message-hint" class="govuk-hint"> It probably has some letters, numbers and maybe even some symbols in it. </div> <p id="password-input-with-error-message-error" class="govuk-error-message"> <span class="govuk-visually-hidden">Error:</span> Error message goes here </p> <div class="govuk-input__wrapper govuk-password-input__wrapper"> <input class="govuk-input govuk-password-input__input govuk-js-password-input-input govuk-input--error" id="password-input-with-error-message" name="test-name-3" type="password" spellcheck="false" aria-describedby="password-input-with-error-message-hint password-input-with-error-message-error" autocomplete="current-password" autocapitalize="none"> <button type="button" class="govuk-button govuk-button--secondary govuk-password-input__toggle govuk-js-password-input-toggle" data-module="govuk-button" aria-controls="password-input-with-error-message" aria-label="Show password" hidden> Show </button> </div> </div>