diff --git a/api-generator/components/password.js b/api-generator/components/password.js index f293a7005..de7388336 100644 --- a/api-generator/components/password.js +++ b/api-generator/components/password.js @@ -77,6 +77,12 @@ const PasswordProps = [ default: "pi pi-eye", description: "Icon to show displaying the password as plain text." }, + { + name: "placeholder", + type: "string", + default: "null", + description: "Placeholder text for the input." + }, { name: "inputId", type: "string", diff --git a/src/components/password/Password.d.ts b/src/components/password/Password.d.ts index ed1eaabb9..5b6c158d4 100755 --- a/src/components/password/Password.d.ts +++ b/src/components/password/Password.d.ts @@ -59,6 +59,10 @@ export interface PasswordProps extends InputHTMLAttributes { * Default value is 'pi pi-eye'. */ showIcon?: string | undefined; + /** + * Placeholder text for the input. + */ + placeholder?: string | undefined; /** * Identifier of the underlying input element. */ diff --git a/src/components/password/Password.vue b/src/components/password/Password.vue index 0dcf8ae79..a00c5df42 100755 --- a/src/components/password/Password.vue +++ b/src/components/password/Password.vue @@ -1,7 +1,7 @@