Password Input API
API Reference e-password
This component is written in TypeScript.
This component features render debouncing.
You may have to wait for the next browser tick after rendering in your integration/E2E tests.
HTML Attributes API
Name | Description | Type | Required | Default value |
---|---|---|---|---|
value |
Gets or sets the value of the password field | string | ||
name |
Gets or sets the name attribute of the password field | string | ||
placeholder |
Defines the password field placeholder if it is empty | string | ||
reveal-hidden |
Hiding the "Reveal" button | boolean | false |
|
copy-visible |
Displaying a "Copy to Clipboard" button next to input | boolean | false |
|
disabled |
Sets disabled state | boolean | false |
Events
Event | Description | Returns |
---|---|---|
change |
Fires when the value of the password input is changed |
|
input |
Fires on clicking the input or the label |
|
reveal |
Fires on clicking the reveal button when password is revealed | |
hide |
Fires on clicking the reveal button when password is hidden | |
copy |
Fires on clicking the Copy button |