TelerikAvatar
Class
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:
C#
public class TelerikAvatar : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikAvatar
Implements:
Inherited Members
Constructors
C#
public TelerikAvatar()
Methods
C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
Properties
Specifies whether the avatar is wrapped with a border.
C#
[Parameter]
public bool Bordered { get; set; }
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.
C#
[Parameter]
public RenderFragment? ChildContent { get; set; }
Specifies the fill mode of the avatar.
C#
[Parameter]
public string? FillMode { get; set; }
Specifies the roundness of the avatar.
C#
[Parameter]
public string? Rounded { get; set; }
Specifies the theme color of the avatar.
C#
[Parameter]
public string? ThemeColor { get; set; }