A Gravatar avatar component that displays a user's profile image from Gravatar.com based on their email address. RadzenGravatar automatically fetches and displays the globally recognized avatar associated with an email. Gravatar (Globally Recognized Avatar) is a service that associates profile images with email addresses. Fetches avatar using MD5 hash of email address, requires no storage or management of avatar images, shows default retro-style avatar if email has no Gravatar, features configurable pixel dimensions, and uses secure.gravatar.com to retrieve images. Generates a Gravatar URL from the email and displays it as an image. If the email doesn't have a Gravatar account, a retro-style default avatar is shown. Commonly used in user profiles, comment sections, or anywhere user identity is displayed.
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponent.SetParametersAsync
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenGravatar : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRenderBasic Gravatar:
<RadzenGravatar Email="user@example.com" />
Large Gravatar with custom alternate text:
<RadzenGravatar Email=@currentUser.Email Size="80" AlternateText=@currentUser.Name />
Gravatar in profile header:
<RadzenStack Orientation="Orientation.Horizontal" Gap="1rem" AlignItems="AlignItems.Center">
<RadzenGravatar Email=@user.Email Size="64" />
<RadzenText TextStyle="TextStyle.H5">@user.Name</RadzenText>
</RadzenStack>A Gravatar avatar component that displays a user's profile image from Gravatar.com based on their email address. RadzenGravatar automatically fetches and displays the globally recognized avatar associated with an email. Gravatar (Globally Recognized Avatar) is a service that associates profile images with email addresses. Fetches avatar using MD5 hash of email address, requires no storage or management of avatar images, shows default retro-style avatar if email has no Gravatar, features configurable pixel dimensions, and uses secure.gravatar.com to retrieve images. Generates a Gravatar URL from the email and displays it as an image. If the email doesn't have a Gravatar account, a retro-style default avatar is shown. Commonly used in user profiles, comment sections, or anywhere user identity is displayed.
public RadzenGravatar()Gets or sets the alternate text describing the avatar for accessibility. This text is read by screen readers and displayed if the image fails to load.
public string AlternateText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the alternate text describing the avatar for accessibility. This text is read by screen readers and displayed if the image fails to load. |
Gets or sets the email address used to fetch the Gravatar image. The email is hashed (MD5) and used to query Gravatar.com for the associated profile image.
public string Email { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the email address used to fetch the Gravatar image. The email is hashed (MD5) and used to query Gravatar.com for the associated profile image. |
Gets or sets the size of the avatar image in pixels (both width and height). Gravatar provides square images at various sizes.
public int Size { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the size of the avatar image in pixels (both width and height). Gravatar provides square images at various sizes. |
Gets gravatar URL.
protected string Url { get; }
| Type | Description |
|---|---|
| string | Gets gravatar URL. |