• What is KendoReact
  • Getting Started
  • Unstyled Mode
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chart Wizardnew
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Toolsupdated
    • Date Inputs
    • Date Math
    • Dialogsupdated
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gantt
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBoxupdated
    • ListView
    • Map
    • Notification
    • OrgChart
    • PDF Processing
    • PDF Viewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Schedulerupdated
    • ScrollView
    • Sortable
    • Spreadsheet
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

Appearance

The Avatar 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 avatar—By passing an given string to be rendered as text (initials).
  • Icon avatar—By passing icon to the Avatar component.

The following example demonstrates the type options of the Avatar.

Example
View Source
Change Theme:

Theme Color

The Avatar allows you to specify predefined theme colors.

The available themeColor values are:

  • primary (Default)—Applies coloring based on primary theme color.
  • secondary—Applies coloring based on secondary theme color.
  • tertiary— Applies coloring based on tertiary theme color.
  • inherit— Applies inherited coloring value.
  • info—Applies 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:

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 styleproperty.

Example
View Source
Change Theme:

Fill Mode

The Avatar enables you to set styling options and create solid or outline avatars by setting the fillMode property.

The available fillMode values are:

  • solid (Default)
  • outline

An additional border around the content of an outline avatar can be rendered by setting the border property to true.

Example
View Source
Change Theme:

Rounded

The Avatar allows you to set predefined border-radius by setting the rounded property.

The available rounded values are:

  • small
  • medium (Default)
  • large
  • full

An additional border around the content of an outline avatar can be rendered by setting the border property to true.

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: