# Blazor Badge Overview

The <a href = "https://www.telerik.com/blazor-ui/badge" target="_blank">Blazor Badge component</a> is a visual element that displays additional information, such as a status indicator, notification icon, short text, and others.

The Badge comes with built-in customization features that allow the developer to fine-tune the [positioning and alignment](https://www.telerik.com/blazor-ui/documentation/components/badge/position) of the component, change the [background color](https://www.telerik.com/blazor-ui/documentation/components/badge/appearance#themecolor) and the [fill mode](https://www.telerik.com/blazor-ui/documentation/components/badge/appearance#fillmode), and to enable or disable the cutout border.

## Creating Blazor Badge

1. Add the `<TelerikBadge>` tag to a container that the Badge will attach to.
2. Use the Badge `ChildContent` to add content.
3. (optional) Customize the [appearance](https://www.telerik.com/blazor-ui/documentation/components/badge/appearance) and fine-tune the [positioning and alignment](https://www.telerik.com/blazor-ui/documentation/components/badge/position) of the Telerik Blazor Badge.

> caption Basic configuration of the Blazor Badge

<demo metaUrl="client/badge/overview/" height="200"></demo>

## Positioning and Alignment

You can control how the Badge is positioned relative to its associated container. Read more about the [Blazor Badge positioning...](https://www.telerik.com/blazor-ui/documentation/components/badge/position)

## Badge Parameters

The Blazor Badge provides various parameters that allow you to configure the component. Also check the [Badge API Reference](https://www.telerik.com/blazor-ui/documentation/api/telerik.blazor.components.telerikbadge) for a full list of properties.

<style>
    .article table {
        table-layout: auto;
        word-break: normal;
    }
</style>

| Parameter          | Type                                   | Description                                                                                                                                                                                            |
| ------------------ | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `ShowCutoutBorder` | `bool`                                 | Controls whether there is a small visual separation between the Badge and the container when they overlap.                                                                                             |
| `Position`         | `BadgePosition ` <br /> (`Edge`)       | The position of the Badge relative to the container. [Read more about Badge positioning.](https://www.telerik.com/blazor-ui/documentation/components/badge/position)                                   |
| `HorizontalAlign`  | `BadgeHorizontalAlign ` <br /> (`End`) | Determines if the left or the right side of the Badge will touch its parent container. [Read more about Badge positioning.](https://www.telerik.com/blazor-ui/documentation/components/badge/position) |
| `VerticalAlign`    | `BadgeVerticalAlign  ` <br /> (`Top`)  | Determines if the Badge will touch the parent container with its top or bottom side. [Read more about Badge positioning.](https://www.telerik.com/blazor-ui/documentation/components/badge/position)   |

### Styling and Appearance

The following parameters enable you to customize the appearance of the Blazor Badge:

| Parameter    | Type                                                     | Description                                                                                                                                                                                                                                |
| ------------ | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Class`      | `string`                                                 | Defines the `<div class="k-badge">` CSS class rendered on the main wrapping element of the Badge component. Use it for [styling customizations](https://www.telerik.com/blazor-ui/documentation/styling-and-themes/override-theme-styles). |
| `FillMode`   | `Telerik.Blazor.ThemeConstants.Badge.FillMode.Solid`     | Controls how the Badge is filled.                                                                                                                                                                                                          |
| `Rounded`    | `Telerik.Blazor.ThemeConstants.Badge.Rounded.Full`       | Defines how rounded the borders of the Badge are.                                                                                                                                                                                          |
| `Size`       | `Telerik.Blazor.ThemeConstants.Badge.Size.Medium`        | Sets the size of the Badge.                                                                                                                                                                                                                |
| `ThemeColor` | `Telerik.Blazor.ThemeConstants.Badge.ThemeColor.Primary` | Adjusts the background color of the Badge.                                                                                                                                                                                                 |

You can find more information for customizing the Badge appearance in the [Appearance article](https://www.telerik.com/blazor-ui/documentation/components/badge/appearance).

## Next Steps

* [Explore the Badge Positioning and Alignment Settings](https://www.telerik.com/blazor-ui/documentation/components/badge/position)
* [Customize the Badge Appearance](https://www.telerik.com/blazor-ui/documentation/components/badge/appearance)
* [Add a Badge to a Container that Cannot Have Children (Knowledge-Base Article)](https://www.telerik.com/blazor-ui/documentation/knowledge-base/badge-container-no-children)

## See Also

* [Live Badge Demos](https://demos.telerik.com/blazor-ui/badge/overview)
* [Badge API Reference](https://www.telerik.com/blazor-ui/documentation/api/telerik.blazor.components.telerikbadge)
