Table of Contents

Class BOBAvatar

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.dll
[GenerateComponentInfo]
public class BOBAvatar : BOBComponentBase, IHasSize, IHasBackgroundColor
Inheritance
object
ComponentBase
BOBAvatar
Implements
Inherited Members

Constructors

BOBAvatar()

public BOBAvatar()

Properties

AriaLabel

Aria-label override. Falls back to Label.

[Parameter]
public string? AriaLabel { get; set; }

Property Value

string

BackgroundColor

Background color of the avatar. Accepts any valid CSS color value, PaletteColor or BOBColor.

[Parameter]
public string? BackgroundColor { get; set; }

Property Value

string

ChildContent

Custom child content (overrides initials).

[Parameter]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

ImageUrl

Source URL of the avatar image. When empty, initials + gradient render instead.

[Parameter]
public string? ImageUrl { get; set; }

Property Value

string

Label

Display label used to derive initials and gradient hash.

[Parameter]
public string? Label { get; set; }

Property Value

string

Shape

Shape outline.

[Parameter]
public BOBAvatarShape Shape { get; set; }

Property Value

BOBAvatarShape

Size

Visual size.

[Parameter]
public BOBSize Size { get; set; }

Property Value

BOBSize

Status

Optional status indicator dot.

[Parameter]
public BOBAvatarStatus Status { get; set; }

Property Value

BOBAvatarStatus

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

DisposeAsync()

Tears down the JS-side behavior associated with this component.

public override ValueTask DisposeAsync()

Returns

ValueTask

OnInitialized()

Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.

protected override void OnInitialized()