ClassTelerikAvatar
A component that lets you display a user representation as an image, icon, or text. Supports sizes, roundness, fill modes, theme colors, optional border, and usage inside other components (e.g., TelerikChip).
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikAvatar : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikAvatar
Implements:
Inherited Members
Constructors
TelerikAvatar()
Declaration
public TelerikAvatar()
Properties
Bordered
Specifies whether the avatar is wrapped with a border.
ChildContent
Defines arbitrary HTML (most commonly img), icon or text. To be used in conjunction with the Type parameter. Children: allows arbitrary content based on the Type parameter.
Declaration
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
FillMode
Specifies the fill mode of the avatar. Default value is Solid.
Declaration
[Parameter]
public string FillMode { get; set; }
Property Value
Height
Defines the height of the avatar.
ThemeColor
Specifies the theme color of the avatar. Default value is Primary.
Declaration
[Parameter]
public string ThemeColor { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides