Bind value to application state. toggleable adds a show/hide button; showStrength displays client-side guidance, not a security policy. Use autocomplete="new-password" for account creation or "current-password" for sign-in. Never log or echo the password in a status panel.
These values match the current preview. Complete handlers, Core imports and templates are in Source.
configured-state.ts
import { signal } from '@angular/core';
export const value = signal("");
These inputs require a model or function, not a checkbox. Edit the same-named field in the Source component and bind it in the template; data already used by this preview appears in the state above.
Bind value to application state. toggleable adds a show/hide button; showStrength displays client-side guidance, not a security policy. Use autocomplete="new-password" for account creation or "current-password" for sign-in. Never log or echo the password in a status panel.
Inputs, models and Outputs are extracted from the installed Core package. Named public types link to their definitions. Templates below include executable examples.
Inputs
Configure the component with [property]="value". Your application supplies these values; the component does not replace the state you pass in.
Name
Type
Default
Template binding
Description
autocomplete
string
'current-password'
[autocomplete]
Native browser autocomplete attribute for the input.
dirty
boolean
false
[dirty]
Form state indicating that the user has changed the value.
disabled
boolean
false
[disabled]
Prevents interaction with this control.
errors
readonly ValidationError.WithOptionalFieldTree[]
[]
[errors]
Validation errors supplied by the form or the application.
floatingLabel
boolean
false
[floatingLabel]
Displays the label in the floating-label field style.
hidden
boolean
false
[hidden]
Hides the control according to the form state.
hideLabel
string
'Hide'
[hideLabel]
Accessible text for the password visibility action.
Form state indicating that asynchronous validation is pending.
placeholder
string
''
[placeholder]
Text shown when the field has no selected value.
readonly
boolean
false
[readonly]
Keeps the applied value visible but prevents user edits.
required
boolean
false
[required]
Marks the field as required; use a form validator to enforce it.
showLabel
string
'Show'
[showLabel]
Accessible text for the password visibility action.
showStrength
boolean
false
[showStrength]
Show visual password-strength guidance; it does not enforce a security policy.
toggleable
boolean
true
[toggleable]
Show the password visibility button.
touched
boolean
false
[touched]
Form state indicating that the control has been visited.
Models
A model supports [(property)]="signal" or the [property] and (propertyChange) pair. Choose one form, not both.
Name
Type
Default
Template binding
Description
value
string
''
[(value)]
Application-owned editable model value.
Outputs
Listen to an event with (event)="handler($event)". The table explains the data your handler receives and how to use it.
Name
Payload
Template binding
Description
touch
void
(touch)="onTouch($event)"
Notifies the form that the control has been touched; not a value change.
Templates
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
This component does not expose content projection or public customization templates.
Use the supported public tokens listed below. Surrounding layout belongs to your application; validate the result in light and dark modes and narrow containers.
Specific tokens
This component uses shared theme tokens rather than dedicated component hooks.
Shared tokens used
Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.
Token
Purpose here
Other impact
Default / fallback
--neu-border
Normal control and cell borders
Shared by other Core consumers; scope the override.
rgba(15, 23, 42, 0.08)
--neu-focus-ring
Normal keyboard-focus ring
Shared by other Core consumers; scope the override.