EccPassword
EccPassword shows and edits secret values - passwords, API keys, PINs. The value is masked; an eye button reveals it for three seconds.
import { EccPassword } from "@/ecc/components/forms/EccPassword";
EccPassword uses the basic props of all field components - label, value by path, editable, mandatory, valueOut, hidden, id, visibility by group. Read Component Basics first; this page only describes what is special about the password field.
Examples
// display: always masked as ••••••••, the eye button shows the value for 3 seconds
<EccPassword fieldLabel="API key" value="variables.supplier.apiKey" data={process} />
// input with output
<EccPassword fieldLabel="Initial password" value="account.initialPassword" data={draft}
editable mandatory valueOut />
// input with an explicit output path
<EccPassword id="pin" fieldLabel="PIN" valueOut="output.access.pin" editable />
Behaviour
read-only |
|
| password input; the eye button switches it to plain text for 3 seconds; a second click masks it at once |
| the field is marked as invalid (red border and star) |
validator error ( | the message appears next to the label |
The input asks the browser not to fill in saved passwords (autocomplete="new-password").
Output
With valueOut the current value is written to the page output as text. An empty field writes null.
{ "account": { "initialPassword": "S3cure!2026" } }
Props
|
| - | text or dot path into |
|
| - | object the path is resolved against |
|
|
| fallback and initial value |
|
|
| input instead of display |
|
|
| required marker |
|
| - | write the value to the output (see Component Basics) |
|
| - | label above the field |
|
|
| hide the field, keep its value in the output |
|
| - | id for a page validator |
|
| - | visibility by group |
|
| styling of the outer wrapper |
Copy to clipboard (copyable, showIcon), the info popover (info) and mandatoryMessage are not supported by EccPassword.
Related
basic props shared by all field components | |
the same for values that may be shown in plain text | |
read the value with |
On this page
- EccPassword