diff --git a/api-generator/components/chips.js b/api-generator/components/chips.js index 1dc3ff05c..e5bdb5690 100644 --- a/api-generator/components/chips.js +++ b/api-generator/components/chips.js @@ -35,6 +35,12 @@ const ChipsProps = [ default: "false", description: "When present, it specifies that the element should be disabled." }, + { + name: "placeholder", + type: "string", + default: "null", + description: "Placeholder text for the input." + }, { name: "inputId", type: "string", diff --git a/src/components/chips/Chips.d.ts b/src/components/chips/Chips.d.ts index c2f33e96f..4a64643e2 100755 --- a/src/components/chips/Chips.d.ts +++ b/src/components/chips/Chips.d.ts @@ -59,6 +59,10 @@ export interface ChipsProps { * When present, it specifies that the element should be disabled. */ disabled?: boolean | undefined; + /** + * Placeholder text for the input. + */ + placeholder?: string | undefined; /** * Establishes relationships between the component and label(s) where its value should be one or more element IDs. */ diff --git a/src/components/chips/Chips.vue b/src/components/chips/Chips.vue index 1092a28ae..f38690b84 100755 --- a/src/components/chips/Chips.vue +++ b/src/components/chips/Chips.vue @@ -10,7 +10,7 @@
  • -
  • @@ -44,6 +44,10 @@ export default { type: Boolean, default: true }, + placeholder: { + type: String, + default: null + }, inputId: null, inputClass: null, inputStyle: null, diff --git a/src/views/chips/ChipsDoc.vue b/src/views/chips/ChipsDoc.vue index 2f51374fb..498f28e0c 100755 --- a/src/views/chips/ChipsDoc.vue +++ b/src/views/chips/ChipsDoc.vue @@ -83,6 +83,12 @@ import Chips from 'primevue/chips'; false When present, it specifies that the element should be disabled. + + placeholder + string + null + Placeholder text for the input. + inputId string