# Appearance

The Badge provides predefined appearance options such as different sizes, border radiuses, fill modes and theme colors.

For a live example, visit the [Appearance Demo of the Badge](https://demos.telerik.com/aspnet-ajax/badge/appearance/defaultcs.aspx).

## Options

The Telerik WebForms Badge supports the following styling options:

* [`Size`](https://www.telerik.com/products/aspnet-ajax/documentation/controls/badge/appearance#size) - Configures the overall size of the component.
* [`ThemeColor`](https://www.telerik.com/products/aspnet-ajax/documentation/controls/badge/appearance#themecolor) - Configures what color will be applied to the component.
* [`FillMode`](https://www.telerik.com/products/aspnet-ajax/documentation/controls/badge/appearance#fillmode) - Configures how the color is applied to the component.
* [`Rounded`](https://www.telerik.com/products/aspnet-ajax/documentation/controls/badge/appearance#rounded) - Configures the border radius of the component.
* [`Position`](https://www.telerik.com/products/aspnet-ajax/documentation/controls/badge/appearance#position) - Configures the position of the component.
* [`Align`](https://www.telerik.com/products/aspnet-ajax/documentation/controls/badge/appearance#align) - Configures the alignment  of the component.
* [`CutoutBorder`](https://www.telerik.com/products/aspnet-ajax/documentation/controls/badge/appearance#cutout-border) - Configures the cutout border of the component.
* [`Icon`](https://www.telerik.com/products/aspnet-ajax/documentation/controls/badge/appearance#icon) - Displays an icon.

## Size

The size option controls how big or small the rendered badge looks.

!["Badge Size"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/b28d929c32853c5cc6d0df0a7eba04c1/badge-size.png "Badge Size")

The following values are available for the `size` option:

* `Small`
* `Medium` (default)
* `Large`

Example

```ASP.NET
<telerik:RadBadge runat="server" Text="Small" Size="Small" />
<telerik:RadBadge runat="server" Text="Medium" Size="Medium" />
<telerik:RadBadge runat="server" Text="Large" Size="Large" />
```

## FillMode

The `FillMode` option controls the way the color is applied to the rendered div.

!["Badge FillMode"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/bbb743a76af59131f445421f540e7121/badge-fiilmode.png "Badge FillMode")

The following values are available for the `FillMode` option:

* `Solid` (default)
* `Outline`

Example

```ASP.NET
<telerik:RadBadge runat="server" Text="Solid" FillMode="Solid" />
<telerik:RadBadge runat="server" Text="Outline" FillMode="Outline" />
```

## ThemeColor

The `ThemeColor` option controls the color that will be applied to the rendered Badge.

!["Badge ThemeColor"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/521bb50b675117e9371dce472f5dae3a/badge-theme-colors.png "Badge ThemeColor")

The following values are available for the `ThemeColor` option:

* `Primary`
* `Secondary` (default)
* `Tertiary`
* `Info`
* `Success`
* `Warning`
* `Error`

Example

```ASP.NET
<telerik:RadBadge runat="server" ID="RadBadge1" Text="Primary" ThemeColor="Primary" />
<telerik:RadBadge runat="server" ID="RadBadge4" Text="Info" ThemeColor="Info" />
<telerik:RadBadge runat="server" ID="RadBadge5" Text="Success" ThemeColor="Success" />
<telerik:RadBadge runat="server" ID="RadBadge6" Text="Warning" ThemeColor="Warning" />
<telerik:RadBadge runat="server" ID="RadBadge7" Text="Error" ThemeColor="Error" />
```

## Rounded

The `Rounded` option controls how much border radius is applied to the rendered Badge.

!["Badge Rounded"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/4f0bd4efe4f7318109597a2153b7fe01/badge-rounded.png "Badge Rounded")

The following values are available for the `Rounded` option:

* `Small`
* `Medium` (default)
* `Large`
* `Full`

Example

```ASP.NET
<telerik:RadBadge runat="server" ID="RadBadge1" Text="Small" Rounded="Small" />
<telerik:RadBadge runat="server" ID="RadBadge2" Text="Medium" Rounded="Medium" />
<telerik:RadBadge runat="server" ID="RadBadge3" Text="Large" Rounded="Large" />
<telerik:RadBadge runat="server" ID="RadBadge4" Text="Full" Rounded="Full" />
```

# Position

The `Position` option specifies position of the Badge relative to the edge of the container

!["Badge Position"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/e8d55b97f89cfa8c7da7d58e88769f71/badge-position.png "Badge Positon")

The following values are available for the `Position` option:

* `Inline`
* `Edge` (default)
* `Inside`
* `Outside`

# Align

The `Align` option specifies position of the Badge relative to its container

Note: when using `Align`, make sure the Badge container has [CSS position](https://developer.mozilla.org/en-US/docs/Web/CSS/position) other than `static` and allows [overflow content](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow).

The following values are available for the `Align` option:

* `TopStart`
* `TopEnd` (default)
* `BottomStart`
* `BottomEnd`

```ASP.NET
<button>
    TopStart
    <telerik:RadBadge runat="server" Position="Edge" Align="TopStart" />
</button>

<button>
    TopEnd
    <telerik:RadBadge runat="server" Position="Edge" Align="TopEnd" />
</button>

<button>
    BottomStart
    <telerik:RadBadge runat="server" Position="Edge" Align="BottomStart" />
</button>

<button>
    BottomEnd
    <telerik:RadBadge runat="server" Position="Edge" ID="RadBadge8" Align="BottomEnd" />
</button>
```

## Cutout Border

The `CutoutBorder` option specifies whether or not to render additional "cutout" border around the badge.

!["Cutout Border"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/601f1f9318912482f4b374268baf3921/badge-cutout-border.png "Cutout Border")

```ASP.NET
<telerik:RadBadge runat="server" CutoutBorder="false" />
<telerik:RadBadge runat="server" CutoutBorder="true" />
```

The display of the `CutoutBorder` option is controlled by specifying either `true` or `false`.

## Icon

To enable icons for the badge, set the `Icon` property to the **name** of the embedded icon.

Visit the [Progress Design System - List of Icons](https://docs.telerik.com/kendo-ui/styles-and-layout/sass-themes/font-icons#list-of-font-icons) page and find the icon of your choice.

!["Icon name"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/fd12a14b102b3f6f9cbef01d16ba7334/badge-icons.png "Icon name")

Example

```ASP.NET
<telerik:RadBadge runat="server" ID="RadBadge1" Icon="x" />
<telerik:RadBadge runat="server" ID="RadBadge2" Icon="undo" />
<telerik:RadBadge runat="server" ID="RadBadge3" Icon="redo" />
<telerik:RadBadge runat="server" ID="RadBadge4" Icon="clock" />
```

## Next Steps

* [Client-side Programming](https://www.telerik.com/products/aspnet-ajax/documentation/controls/badge/client-side-programming/overview)
* [Server-side Programming](https://www.telerik.com/products/aspnet-ajax/documentation/controls/badge/server-side-programming/overview)
