Use the Badge component for quantification labels
The
<p-badge> component is used to display a label quantifying an item, such as the number of notifications or documents received. It accepts a default slot for the content to be displayed inside the badge.<template>
<!-- Simple text badge -->
<p-badge>25</p-badge>
<!-- Badge with icon and text -->
<p-badge>
<pi-signature-16 />
<span>2</span>
</p-badge>
</template>