averouiComponent playgroundv0.0.1

Password

New

A password field with a visibility toggle, local strength feedback and Angular forms support.

Reactive formsFloat labelThree sizes

Overview

Use the eye button to reveal the password. It is hidden again when focus leaves the field.

HTMLBasic usage
<av-password inputId="password" label="Password"
  [(ngModel)]="password" [feedback]="false" />

Strength feedback

Focus the field to see feedback. Press Escape to dismiss it. The score is a local complexity hint, not a validation rule or a breached-password check.

Sizes and floating labels

The same sizes as Input, with an optional floating label.

sm 32 px
md 40 px
lg 48 px

Reactive forms

Supports formControl, formControlName and ngModel. Validation belongs to your form.

HTMLReactive forms
<av-password inputId="password" label="Password"
  [formControl]="password" />

Disabled

Usage

Import AvPassword and the Angular forms module you use. Give every input a unique inputId.

TYPESCRIPTComponent setup
import { AvPassword } from 'avero-ui';
import { FormsModule } from '@angular/forms';

@Component({
  imports: [AvPassword, FormsModule],
})
Options. Use [toggleMask]="false" to hide the eye button, [feedback]="false" to disable strength feedback, or floatingLabel for an animated label. Input color variables also apply.
Avero UI Designed to fit your application.