Skip to main content

Password Input API

Properties
NameTypeDefaultDescription
valuestringGets or sets the value of the password field.
namestringName attribute of the password field.
placeholderstringPlaceholder text shown when the field is empty.
reveal-hiddenbooleanfalseHides the reveal button.
copy-visiblebooleanfalseShows a copy-to-clipboard button next to the input.
disabledbooleanfalseDisables the input.
readonlybooleanfalseSets the read-only state.
Events
EventDescriptionReturns
changeFires when the value changes.{ detail: { value: string } }
inputFires on each keystroke.{ detail: { value: string } }
revealFires when the reveal button is clicked and the password becomes visible.
hideFires when the reveal button is clicked and the password is hidden again.
copyFires when the copy button is clicked.