diff --git a/packages/primevue/src/button/BaseButton.vue b/packages/primevue/src/button/BaseButton.vue index 407da43d0..3a5535b35 100644 --- a/packages/primevue/src/button/BaseButton.vue +++ b/packages/primevue/src/button/BaseButton.vue @@ -19,7 +19,7 @@ export default { default: 'left' }, iconClass: { - type: String, + type: [String, Object], default: null }, badge: { @@ -27,7 +27,7 @@ export default { default: null }, badgeClass: { - type: String, + type: [String, Object], default: null }, badgeSeverity: { diff --git a/packages/primevue/src/button/Button.d.ts b/packages/primevue/src/button/Button.d.ts index c5b1f30da..c481550ec 100755 --- a/packages/primevue/src/button/Button.d.ts +++ b/packages/primevue/src/button/Button.d.ts @@ -107,7 +107,7 @@ export interface ButtonProps extends ButtonHTMLAttributes { /** * Style class of the icon. */ - iconClass?: string | undefined; + iconClass?: string | object | undefined; /** * Value of the badge. */ @@ -115,7 +115,7 @@ export interface ButtonProps extends ButtonHTMLAttributes { /** * Style class of the badge. */ - badgeClass?: string | undefined; + badgeClass?: string | object | undefined; /** * Severity type of the badge. */