We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

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.


Notification badge

The JavaScript and CSS badges display unread notification counts in different colors to indicate their priority level.


Pill badge

Create badges with rounded edges using the pill badge variant.


Create clickable link badges using the link CSS badge variant with an anchor element. It has hover and focus states.


Overlap badge

Create badges that overlap with profile icons or images, similar to social media notification count badges.


Badge position

The notification badge can be positioned at the top or bottom of profile icons or images. It is placed at the top by default.


Predefined styles

Eight predefined contextual color variants are available for badges.


Types of badges

The JavaScript and CSS Badge control supports six different styles: default, circle, pill, notification, ghost, and dot.


UI customization

Completely customize the JavaScript Badge attributes, like dimensions and colors.


Integration with other controls

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.


Other supported frameworks

The Badge component is also available in React, Angular, and Vue frameworks. Check out the different Badge platforms from the links below,


JavaScript Badge Code Example

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();
//


80+ JAVASCRIPT UI CONTROLS

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

4.4/5
(340+ Reviews)
Read more on Capterra
4.6/5
(390+ Reviews)
Read more on G2
4.4/5
(340+ Reviews)
Read more on GetApp

Transform your applications today by downloading our free evaluation version Download Free Trial

Awards

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.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile