Free
Pro

Password Input

A password field with a show/hide toggle. It is a ControlValueAccessor — bind formControlName, ngModel, or [formField] on ply-password-input itself. Do not wrap it in another ply-input-group.

freenew

Playground

HTML

<ply-password-input label="Password" placeholder="••••••••" autocomplete="current-password">Password Input</ply-password-input>

Basic Usage

Pass an optional label. Project ply-error for validation. Set [showStrength] to include the meter.

Validation

Project ply-error. The red border and message appear after the field is touched.

Installation

Run the following command to add this component to your project:

bash

npx ply-ui-cli add password-input

API Reference

For AI agents

Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.

bash

npx -y ply-ui-mcp

Ply provides standalone components. Import the exact elements you want to use into your component.

typescript (Example)

// Install: npx ply-ui-cli add password-input
// Paths are relative to aliases.components (default: src/app/components)
import { PasswordInputComponent } from './password-input/password-input.component';

@Component({
  selector: 'app-your-component',
  imports: [
    PasswordInputComponent
  ],
  template: `...`
})
export class YourComponent {}

API for password-input — generated from JSDoc in the library source.

API reference for password-input
APIMemberTypeDefaultDescription
ply-password-inputclassstring''Additional host CSS classes (merged via cn()).
ply-password-inputlabelstring''
ply-password-inputplaceholderunknown'••••••••'
ply-password-inputautocompleteunknown'current-password'
ply-password-inputnamestring''
ply-password-inputshowStrengthbooleanfalse
ply-password-inputdisabledbooleanfalse