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 JavaScript and CSS badges display 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 JavaScript and CSS Badge control supports six different styles: default, circle, pill, notification, ghost, and dot.
Completely customize the JavaScript Badge attributes, like dimensions and colors.
Integrate the CSS Badge into various controls to achieve different applications, such as displaying the number of unread messages in an email category, the status of product support, and more.
The Badge component is also available in React, Angular, and Vue frameworks. Check out the different Badge platforms from the links below,
Easily get started with the JavaScript Badge (HTML5 Badge) using a few simple lines of HTML and TS code, as demonstrated below. Also explore our JavaScript Badge Example that 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>
import { loadCultureFiles } from '../common/culture-loader';
/**
* Sample for CSS Basic Layout Badge
*/
loadCultureFiles();
//
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.