diff --git a/assets/styles/primevue.css b/assets/styles/primevue.css index 5a0f11e7d..a99af375f 100644 --- a/assets/styles/primevue.css +++ b/assets/styles/primevue.css @@ -1,4 +1,5 @@ @import '../../components/lib/common/Common.css'; +/* Todo: badge.css should be removed for unstyled */ @import '../../components/lib/badge/Badge.css'; @import '../../components/lib/button/Button.css'; @import '../../components/lib/checkbox/Checkbox.css'; diff --git a/components/lib/badge/Badge.d.ts b/components/lib/badge/Badge.d.ts index 3d7934bd8..54cf91c44 100644 --- a/components/lib/badge/Badge.d.ts +++ b/components/lib/badge/Badge.d.ts @@ -58,6 +58,11 @@ export interface BadgeProps { * @type {BadgePassThroughOptions} */ pt?: BadgePassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/badge/Badge.vue b/components/lib/badge/Badge.vue index 43e243306..2ab73d911 100644 --- a/components/lib/badge/Badge.vue +++ b/components/lib/badge/Badge.vue @@ -1,49 +1,14 @@ diff --git a/components/lib/badge/BaseBadge.vue b/components/lib/badge/BaseBadge.vue new file mode 100644 index 000000000..56e67048e --- /dev/null +++ b/components/lib/badge/BaseBadge.vue @@ -0,0 +1,87 @@ +