• What is KendoReact
  • Getting Started
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Formupdated
    • Ganttupdated
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBoxupdated
    • ListView
    • Map
    • Notification
    • OrgChartnew
    • PDF Processing
    • PDFViewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

KendoReact Badge Overview

The Badge component is a visual indicator for UI elements. It enables you to easily show statuses, notifications, and short messages in your app. Badges provide additional contextual information for other elements on the page.

The KendoReact Badge is distributed through the kendo-react-indicators NPM package.


The Badge position is determined by its parent element. Depending on the presence of child elements for your React component or HTML element, there are two possible approaches:

  1. When targeting text, HTML tags or React components that can have children, place the Badge as a child. For example, check the main.jsx file in the sample below.
  2. When targeting text, HTML tags, or React components that cannot have children, use a BadgeContainer component to wrap both the targeted element and the Badge. For example, check the social-apps.jsx and contacts.jsx files in the sample below.
Example
View Source
Change Theme:

The Badge is part of the KendoReact Indicators component library. The procedures for installing, importing, and using the Indicators are identical for all components in the package. To learn how to use the Badge and the rest of the Indicators, see the Getting Started with the KendoReact Indicators guide.

Key Features

  • Badge Container—You can use the KendoReact Badge Container to position and wrap the Badge component.
  • Positioning—You can position the KendoReact Badge in relation to its parent container.
  • Appearance—You can quickly style the Badge by choosing from the predefined styling options.

In this article

Not finding the help you need?