InputPassword

InputPassword is an enhanced input for password entry with strength metering, mask toggling, and controlled or uncontrolled usage.

Create a password
8+ characters Number Uppercase letter Special character
PREVIEW

InputPassword is applied to an input element with the pInputPassword directive.

basic-demo

Adding a toggle icon to show or hide the password, allowing users to verify their input.

togglemask-demo

Password requirements checklist with real-time validation feedback.

  • At least 12 characters
  • Contains uppercase letter
  • Contains lowercase letter
  • Contains number
  • Contains special character
requirements-demo

Visualize the overall password strength with an animated progress bar and a severity-based label that adapts as the password improves.

strength-demo

Combine a visibility toggle, strength meter, and requirements checklist into a fully custom password creation with Popover component.

popover-demo

FloatLabel visually integrates a label with its form element. Visit FloatLabel documentation for more information.

float-label-demo

IftaLabel is used to create infield top aligned labels. Visit IftaLabel documentation for more information.

ifta-label-demo

Use a custom clear action to reset the password input.

clearicon-demo

Fluid spans the full width of the container.

fluid-demo

InputPassword provides small and large sizes as alternatives to the base.

sizes-demo

Specify the variant property as filled to display the component with a higher visual emphasis than the default outlined style.

filled-demo

When disabled is present, the element cannot be edited and focused.

disabled-demo

The invalid state is applied using the ⁠invalid property to indicate failed validation, which can be integrated with Angular Forms.

invalid-demo
signal-forms-demo
template-driven-forms-demo
reactive-forms-demo

Screen Reader

InputPassword is applied to a native input element so it implicitly includes any passed prop. Value to describe the component can either be provided via label tag combined with id prop or using aria-labelledby, aria-label props.

Keyboard Support

KeyFunction
tabMoves focus to the input.