diff --git a/api-generator/components/accordion.js b/api-generator/components/accordion.js index 9f136887c..7ddb181c2 100644 --- a/api-generator/components/accordion.js +++ b/api-generator/components/accordion.js @@ -16,6 +16,18 @@ const AccordionProps = [ type: "boolean", default: "false", description: "When enabled, hidden tabs are not rendered at all. Defaults to false that hides tabs with css." + }, + { + name: "expandIcon", + type: "string", + default: "pi-chevron-right", + description: "Icon of a collapsed tab." + }, + { + name: "collapseIcon", + type: "string", + default: "pi-chevron-down", + description: "Icon of a expanded tab." } ]; diff --git a/src/components/accordion/Accordion.d.ts b/src/components/accordion/Accordion.d.ts index 96d8a16cd..f70354ce2 100755 --- a/src/components/accordion/Accordion.d.ts +++ b/src/components/accordion/Accordion.d.ts @@ -31,6 +31,14 @@ export interface AccordionProps { * When enabled, hidden tabs are not rendered at all. Defaults to false that hides tabs with css. */ lazy?: boolean | undefined; + /** + * Icon of a collapsed tab. + */ + expandIcon?: string | undefined; + /** + * Icon of an expanded tab. + */ + collapseIcon?: string | undefined; } export interface AccordionSlots { diff --git a/src/components/accordion/Accordion.vue b/src/components/accordion/Accordion.vue index f44c81647..19f6d97a1 100755 --- a/src/components/accordion/Accordion.vue +++ b/src/components/accordion/Accordion.vue @@ -4,7 +4,7 @@