diff --git a/api-generator/components/password.js b/api-generator/components/password.js index 0ca7898ec..fd3c77456 100644 --- a/api-generator/components/password.js +++ b/api-generator/components/password.js @@ -5,6 +5,18 @@ const PasswordProps = [ default: "null", description: "Value of the component." }, + { + name: "id", + type: "string", + default: "null", + description: "Unique identifier of the element." + }, + { + name: "inputId", + type: "string", + default: "null", + description: "Identifier of the underlying input element." + }, { name: "promptLabel", type: "string", diff --git a/src/components/password/Password.d.ts b/src/components/password/Password.d.ts index eeaf7a6c9..458fec443 100755 --- a/src/components/password/Password.d.ts +++ b/src/components/password/Password.d.ts @@ -8,6 +8,14 @@ export interface PasswordProps extends InputHTMLAttributes { * Value of the component. */ modelValue?: Nullable; + /** + * Unique identifier of the element. + */ + id?: string | undefined; + /** + * Identifier of the underlying input element. + */ + inputId?: string | undefined; /** * Text to prompt password entry. Defaults to PrimeVue Locale configuration. */ diff --git a/src/components/password/Password.vue b/src/components/password/Password.vue index af0c608d3..d7e8b9fda 100755 --- a/src/components/password/Password.vue +++ b/src/components/password/Password.vue @@ -1,6 +1,6 @@