diff --git a/api-generator/components/password.js b/api-generator/components/password.js index de7388336..6dcfdd278 100644 --- a/api-generator/components/password.js +++ b/api-generator/components/password.js @@ -83,6 +83,12 @@ const PasswordProps = [ default: "null", description: "Placeholder text for the input." }, + { + name: "required", + type: "boolean", + default: "false", + description: "When present, it specifies that an input field must be filled out before submitting the form." + }, { name: "inputId", type: "string", diff --git a/src/components/password/Password.d.ts b/src/components/password/Password.d.ts index 62a5c58b3..171825b76 100755 --- a/src/components/password/Password.d.ts +++ b/src/components/password/Password.d.ts @@ -67,6 +67,11 @@ export interface PasswordProps extends InputHTMLAttributes { * Placeholder text for the input. */ placeholder?: string | undefined; + /** + * When present, it specifies that an input field must be filled out before submitting the form. + * Default value is false. + */ + required?: boolean | undefined; /** * Identifier of the underlying input element. */ diff --git a/src/components/password/Password.vue b/src/components/password/Password.vue index a00c5df42..783f83c66 100755 --- a/src/components/password/Password.vue +++ b/src/components/password/Password.vue @@ -1,7 +1,7 @@