# Appearance

The Avatar allows you to set different styles based on its content.

For a live example, visit the [Appearance Demo of the Avatar](https://demos.telerik.com/kendo-ui/avatar/appearance).

## Rounding and Type

The available [`types`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/avatar/configuration/type) are:

* Image—By passing an `img` element as child element of the Avatar.
* Text avatar (Default)—By passing a string that will be rendered as text (initials).
* Icon avatar—By passing an `icon` to the Avatar component.

All of the types can be rendered in a different shape by setting the `rounded` property.

The available [`rounded`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/avatar/configuration/rounded) values are:

* "full" (default)—Renders a circle shape avatar.
* "small"—Renders an avatar with small border radius.
* "medium"—Renders an avatar with medium border radius.
* "large"—Renders an avatar with large border radius.
* "none"—Renders an avatar with no border radius (square avatar).

The following example demonstrates the `type` and `rounded` options of the Avatar:

```dojo
    <div id="avatar"></div>

    <script>
        $(document).ready(function(){
            $("#avatar").kendoAvatar({
                rounded: null,
                type: 'text',
                text: "IMG"
            });
        });
    </script>
```

## Theme Color

The Avatar allows you to specify predefined theme colors.

The available [themeColor](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/avatar/configuration/themeColor) values are:

* "primary" (Default)—Applies coloring based on the primary theme color.
* "base"-Applies base theme color.
* "secondary"—Applies coloring based on the secondary theme color.
* "tertiary"—Applies coloring based on the tertiary theme color.

```dojo
    <div id="avatar"></div>

    <script>
        $(document).ready(function(){
            $("#avatar").kendoAvatar({
                themeColor: 'secondary'
            });
        });
    </script>
```

## Size

The Avatar allows you to set predefined or custom sizes. To specify a predefined size, set the [`size`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/avatar/configuration/size) property.

The available [`size`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/avatar/configuration/size) values are:

* "small"
* "medium" (Default)
* "large"
* "none"

To specify a custom avatar size, use the [style](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/avatar/configuration/style) property.

```dojo
	<p>Avatar Predefined Sizes</p>
    <div id="avatar"></div>

    <script>
        $(document).ready(function(){
            $("#avatar").kendoAvatar({
                size: 'large'
            });
        });
    </script>
```

## FillMode

The Avatar enables you to set styling options and create solid or outline avatars by setting the [`fillMode`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/avatar/configuration/fillMode) property.

The available [fillMode](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/avatar/configuration/fillMode) values are:

* "solid" (Default)
* "outline"
* "none"

An additional border around the content of an outline avatar can be rendered by setting the [`border`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/avatar/configuration/border) property to true.

```dojo
    <div id="avatar"></div>

    <script>
        $(document).ready(function(){
            $("#avatar").kendoAvatar({
                fillMode: 'outline'
            });
        });
    </script>
```

## Border

The Avatar allows you to specify whether or not to render an additional border around its content by using the [border](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/avatar/configuration/border) property. By default, the border is set to `false`.

```dojo
    <div id="avatar"></div>

    <script>
        $(document).ready(function(){
            $("#avatar").kendoAvatar({
                border: true
            });
        });
    </script>
```

## See Also

* [Basic Usage of the Avatar (Demo)](https://demos.telerik.com/kendo-ui/avatar/index)
* [JavaScript API Reference of the Avatar](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/avatar)
