• 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
    • ListBox
    • 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

Overview

The Badge component provides options for positioning in relation to its parent container - HTML element or React Component.

Example
View Source
Change Theme:

Alignment

The Badge allows you to set different alignments relative to its parent container.

The available align keys are:

  • horizontal— Defines the possible horizontal alignment of the Badge.
    • start—Uses the start point of the parent element.
    • end(Default)—Uses the end point of the parent element.
  • vertical— Defines the possible vertical alignment of the Badge.
    • top(Default)—Uses the top point of the parent element.
    • bottom—Uses the bottom point of the parent element.

When using the Badge component without the BadgeContainer component, make sure the HTML element or React component that contains a badge has css position other than static and allows overflow content.

Example
View Source
Change Theme:

Position

The Badge allows you to specify the position of the badge relative to the edge of its parent container.

The available position values are:

  • edge—(Default)The center of the badge is positioned on the edge of the parent container.
  • inside—The badge is positioned entirely inside the parent container.
  • outside—The badge is positioned entirely outside the parent container.
Example
View Source
Change Theme:

In this article

Not finding the help you need?