Password Input API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
value | string | — | Gets or sets the value of the password field. |
name | string | — | Name attribute of the password field. |
placeholder | string | — | Placeholder text shown when the field is empty. |
reveal-hidden | boolean | false | Hides the reveal button. |
copy-visible | boolean | false | Shows a copy-to-clipboard button next to the input. |
disabled | boolean | false | Disables the input. |
readonly | boolean | false | Sets the read-only state. |
Events
| Event | Description | Returns | |
|---|---|---|---|
change | Fires when the value changes. | { detail: { value: string } } | |
input | Fires on each keystroke. | { detail: { value: string } } | |
reveal | Fires when the reveal button is clicked and the password becomes visible. | — | |
hide | Fires when the reveal button is clicked and the password is hidden again. | — | |
copy | Fires when the copy button is clicked. | — | |