diff --git a/exports/badge.d.ts b/exports/badge.d.ts
new file mode 100644
index 0000000000..ebd7f25deb
--- /dev/null
+++ b/exports/badge.d.ts
@@ -0,0 +1 @@
+export * from './components/badge/Badge';
\ No newline at end of file
diff --git a/exports/badge.js b/exports/badge.js
new file mode 100644
index 0000000000..5cf477dda8
--- /dev/null
+++ b/exports/badge.js
@@ -0,0 +1,2 @@
+'use strict';
+module.exports = require('./components/badge/Badge.vue');
\ No newline at end of file
diff --git a/src/components/badge/Badge.d.ts b/src/components/badge/Badge.d.ts
new file mode 100644
index 0000000000..9ab326c77f
--- /dev/null
+++ b/src/components/badge/Badge.d.ts
@@ -0,0 +1,9 @@
+import Vue from 'vue';
+
+declare class Badge extends Vue {
+ value?: any;
+ severity?: string;
+ size?: string;
+}
+
+export default Badge;
\ No newline at end of file
diff --git a/src/components/badge/Badge.vue b/src/components/badge/Badge.vue
new file mode 100644
index 0000000000..d9f49efd13
--- /dev/null
+++ b/src/components/badge/Badge.vue
@@ -0,0 +1,56 @@
+
+
+ {{value}}
+
+
A badge is offered as pure css rather than a component.
+
+
+import Badge from 'primevue/badge';
- Numbers
- Use .p-badge class to display numbers inside badges.
+
+
+ Content of the badge is specified using the value property.
-<span class="p-badge">2</span>
+<Badge value="2"></Badge>
- Tags are optimized for text rather than number and used with the .p-tag class. For more rounded styling like pills, add the .p-tag-rounded class
+A badge can easily be positioned relative to another element by wrapping it.
-<span class="p-tag">New</span>
-<span class="p-tag p-tag-rounded">New</span>
+<Badge value="2">
+ <i class="pi pi-bell" style="font-size: 2rem"></i>
+</Badge>
-
Different options are available as severity levels with.
+Different color options are available as severity levels.
A badge can easily be positioned relative to another element when both are wrapped inside an element with p-overlay-badge class.
-
-
-<span class="p-overlay-badge">
- <i class="pi pi-bell" style="font-size: 2em"></i>
- <span class="p-badge">2</span>
-</span>
-
-<span class="p-overlay-badge">
- <Button type="button" label="New" />
- <span class="p-badge p-badge-warning">5</span>
-</span>
-
-
- Buttons provide integrated badge support with the badge and badgeClass properties.
@@ -60,20 +49,20 @@
Badge sizes are adjusted with additional classes.
+Badge sizes are adjusted with the size property that accepts "large" and "xlarge" as the possible alternatives to the default size.
-<span class="p-badge">2</span>
-<span class="p-badge p-badge-l p-badge-success">4</span>
-<span class="p-badge p-badge-xl p-badge-warning">6</span>
+<Badge value="2"></Badge>
+<Badge value="4" size="large" severity="warning"></Badge>
+<Badge value="6" size="xlarge" severity="success"></Badge>
In addition, when placed inside another element, badge sizes can also derive their size from their parent.
-<h1>Heading 1 <span class="p-tag p-tag-success">New</span></h1>
-<h2>Heading 2 <span class="p-tag p-tag-success">New</span></h2>
+<h1>Heading 1 <Badge value="New"></Badge></h1>
+<h2>Heading 2 <Badge value="New"></Badge></h2>
@@ -92,24 +81,16 @@
-<h3>Numbers</h3>
-<div class="badges">
- <span class="p-badge">2</span>
- <span class="p-badge p-badge-success">8</span>
- <span class="p-badge p-badge-info">4</span>
- <span class="p-badge p-badge-warning">12</span>
- <span class="p-badge p-badge-danger">3</span>
-</div>
-
-<h3>Tags</h3>
-<div class="badges">
- <span class="p-tag">Primary</span>
- <span class="p-tag p-tag-success">Success</span>
- <span class="p-tag p-tag-info">Info</span>
- <span class="p-tag p-tag-warning">Warning</span>
- <span class="p-tag p-tag-danger">Danger</span>
-</div>
-
-<h3>Pills</h3>
-<div class="badges">
- <span class="p-tag p-tag-rounded">Primary</span>
- <span class="p-tag p-tag-rounded p-tag-success">Success</span>
- <span class="p-tag p-tag-rounded p-tag-info">Info</span>
- <span class="p-tag p-tag-rounded p-tag-warning">Warning</span>
- <span class="p-tag p-tag-rounded p-tag-danger">Danger</span>
-</div>
-
-<h3>Positioned Badge</h3>
-<span class="p-overlay-badge p-mr-5">
- <i class="pi pi-bell" style="font-size: 2em"></i>
- <span class="p-badge">2</span>
-</span>
-
-<span class="p-overlay-badge">
- <Button type="button" label="New" />
- <span class="p-badge p-badge-warning">5</span>
-</span>
-
-<h3>Inline Button Badge</h3>
+Numbers
+<Badge value="2" class="p-mr-2"></Badge>
+<Badge value="8" severity="success" class="p-mr-2"></Badge>
+<Badge value="4" severity="info" class="p-mr-2"></Badge>
+<Badge value="12" severity="warning" class="p-mr-2"></Badge>
+<Badge value="3" severity="danger"></Badge>
+
+<h5>Positioned Badge</h5>
+<Badge value="2">
+ <i class="pi pi-bell" style="font-size: 2rem"></i>
+</Badge>
+
+<h5>Button Badge</h5>
<Button type="button" label="Emails" badge="8" class="p-mr-2" />
<Button type="button" label="Messages" icon="pi pi-users" class="p-button-warning" badge="8" badgeClass="p-badge-danger" />
-<h3>Sizes</h3>
-<div class="badges">
- <span class="p-badge">2</span>
- <span class="p-badge p-badge-lg p-badge-success">4</span>
- <span class="p-badge p-badge-xl p-badge-warning">6</span>
-</div>
+<h5>Sizes</h5>
+<Badge value="2" class="p-mr-2"></Badge>
+<Badge value="4" class="p-mr-2" size="large" severity="warning"></Badge>
+<Badge value="6" size="xlarge" severity="success"></Badge>