Skip to content

Password ​

hx-password is a password field with an optional button that shows or hides the text. It works with ngModel, reactive forms and signal forms, like the Select.

html
<label for="pw">Password</label>
<hx-password inputId="pw" [(ngModel)]="password" toggleMask fluid />
InputTypeDefaultDescription
toggleMaskbooleanfalseThe show/hide button (aria-pressed).
inputIdstringId of the field, for <label for>.
placeholderstringA hint, not a label.
autocompletestring'current-password'Use new-password when choosing one.
variant, size, fluidas hx-inputSame look as the text field.
showLabel, hideLabelstringEnglishAccessible names of the toggle, to translate.

There is no strength meter yet.

Tokens ​

The look comes from the design tokens --h-password-*, --h-inputtext-* (see Theming); override them in your theme, never the component CSS.

Part of @gravionlabs/helix-ui; all components are listed in the component reference.

Released under the MIT licence.