The JavaScript Badge is a pure CSS control used to add notifications, messages, or statuses in different shapes and sizes. The Badge control can be easily integrated with ListView, Avatar, and other container controls.
The CSS Badge displays unread notification counts in different colors to indicate their priority level.
Create clickable link badges using the link CSS badge variant with an anchor element. It has hover and focus states.
Create badges that overlap with profile icons or images, similar to social media notification count badges.
The notification badge can be positioned at the top or bottom of profile icons or images. It is placed at the top by default.
Eight predefined contextual color variants are available for badges.
The CSS Badge control supports six different styles: default, circle, pill, notification, ghost, and dot.
Completely customize the CSS Badge attributes, like dimensions and colors.
Integrate the CSS Badge into various controls to achieve different UIs, such as displaying the number of unread messages in an email category or the status of product support.
The Badge component is also available in our Angular, React, and Vue frameworks. Check out the Badge in different platforms from these links:
Easily get started with the JavaScript Badge (HTML5 Badge) using a few simple lines of HTML and TS code, as demonstrated in the following. Also explore our JavaScript Badge example, which shows you how to render and configure the Badge in JavaScript.
<body>
<div id='loader'>Loading....</div>
<div id='container'>
<div id='element'>
<h1>Badge Component <span class="e-badge e-badge-primary">New</span></h1>
</div>
</div>
</body>
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.