Getting Started
    Native Components
    • Animation
    • Buttons
    • Charts
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gauges
    • Gridupdated
    • Indicatorsupdated
    • Inputsupdated
    • Labels
    • Layoutupdated
    • Notificationnew
    • PDF Processing
    • Popup
    • Progress Bars
    • Scheduler
    • ScrollViewnew
    • Tooltip
    • TreeViewnew
    • Upload
    Wrapper Components
    Styling & Themes
    Common Features
    Project Setup
    Changelog
New to Kendo UI for Vue? Start a free 30-day trial

Appearance

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

Type

The available type are:

  • Image By passing an img element as child element of the Avatar.
  • Text avatarBy passing an given string to be rendered as text (initials).
  • Icon avatarBy passing icon to the Avatar component.

The following example demonstrates the type options of the Avatar.

Example
View Source
Change Theme:

Theme Color

The Аvatar allows you to specify predefined theme colors.

The available themeColor values are:

  • primary (Default)Applies coloring based on primary theme color.
  • secondaryApplies coloring based on secondary theme color.
  • tertiary Applies coloring based on tertiary theme color.
  • inherit Applies inherited coloring value.
  • infoApplies coloring based on info theme color.
  • success Applies coloring based on success theme color.
  • warning Applies coloring based on warning theme color.
  • error Applies coloring based on error theme color.
  • dark Applies coloring based on dark theme color.
  • light Applies coloring based on light theme color.
  • inverse Applies coloring based on inverted theme color.
Example
View Source
Change Theme:

Roundness

To Avatar enables you to apply different border radius through the rounded property.

The available rounded options are:

  • small — Sets the border radius to 1px.
  • medium(Default) — Sets the border radius to 2px.
  • large — Sets the border radius to 4px.
  • full — Sets the border radius to 9999px.
  • null — Passing null to the rounded property gives us the option to define a custom CSS class that defines the border-radius of the Avatar.

The following example demonstrates how to customize the roundness of the Avatar.

Example
View Source
Change Theme:

Size

The Avatar allows you to set predefined or custom sizes. To specify a predefined size, set the size property.

The available size values are:

  • small
  • medium (Default)
  • large

To specify a custom Avatar size, use the style property.

Example
View Source
Change Theme:

Fill Mode

The styling of the Avatar is controlled through its fillMode property. The values we can pass to the property are as follows:

  • solid (Default) — Sets a background color and solid borders.
  • outline — Sets a transparent background and solid borders.
  • null — Passing null to the fillMode property gives us the option to define a custom CSS class that defines the background and border of the Avatar.

The following example demonstrates the usage of each fillMode option:

Example
View Source
Change Theme:

Border

The Avatar allows you to specify whether or not to render an additional border around its content by using the border property. By default, border is set to false.

Example
View Source
Change Theme: