Table of Contents

Class MudAvatarGroup

Namespace
MudBlazor
Assembly
MudBlazor.dll

Represents a grouping of multiple MudAvatar components.

public class MudAvatarGroup : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
Inheritance
MudAvatarGroup
Implements
Inherited Members
Extension Methods

Constructors

MudAvatarGroup()

public MudAvatarGroup()

Properties

ChildContent

The content within this component.

[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

Classname

protected string Classname { get; }

Property Value

string

Max

The maximum allowed avatars to display.

[Parameter]
[Category("Behavior")]
public int Max { get; set; }

Property Value

int

Remarks

Avatars above this limit are hidden, and a "+#" is shown for the number of avatars in excess. Defaults to MaxValue.

MaxAvatarClass

The CSS class applied when the number of avatars exceeds Max.

[Parameter]
[Category("Appearance")]
public string? MaxAvatarClass { get; set; }

Property Value

string

Remarks

Defaults to null.

MaxAvatarClassname

protected string MaxAvatarClassname { get; }

Property Value

string

MaxAvatarsTemplate

The template used to render avatars when the number of avatars exceeds Max.

[Parameter]
[Category("Appearance")]
public RenderFragment<int>? MaxAvatarsTemplate { get; set; }

Property Value

RenderFragment<int>

MaxColor

The color of the avatar when the number of avatars exceeds Max.

[Parameter]
[Category("Appearance")]
public Color MaxColor { get; set; }

Property Value

Color

Remarks

Defaults to Default. Theme colors are supported.

MaxElevation

The size of the drop shadow when the number of avatars exceeds Max.

[Parameter]
[Category("Appearance")]
public int MaxElevation { get; set; }

Property Value

int

Remarks

Defaults to 0.

MaxRounded

Shows rounded corners when the number of avatars exceeds Max.

[Parameter]
[Category("Appearance")]
public bool MaxRounded { get; set; }

Property Value

bool

Remarks

Defaults to false. When true, the border-radius style is set to the theme's default value.

MaxSize

The size of the avatar when the number of avatars exceeds Max.

[Parameter]
[Category("Appearance")]
public Size MaxSize { get; set; }

Property Value

Size

Remarks

Defaults to Medium.

MaxSquare

Disables rounded corners when the number of avatars exceeds Max.

[Parameter]
[Category("Appearance")]
public bool MaxSquare { get; set; }

Property Value

bool

Remarks

Defaults to false. When true, the border-radius CSS style is set to 0.

MaxVariant

The display variant to use when the number of avatars exceeds Max.

[Parameter]
[Category("Appearance")]
public Variant MaxVariant { get; set; }

Property Value

Variant

Remarks

Defaults to Filled. The variant changes the appearance of the avatar, such as Text, Outlined, or Filled.

OutlineColor

The color of the outline when Outlined is true.

[Parameter]
[Category("Appearance")]
public Color OutlineColor { get; set; }

Property Value

Color

Outlined

Displays an outline for the group.

[Parameter]
[Category("Appearance")]
public bool Outlined { get; set; }

Property Value

bool

Remarks

Defaults to true. This property is useful to differentiate avatars which are the same color or use images.

Spacing

The amount of space between avatars, between 0 and 16.

[Parameter]
[Category("Behavior")]
public int Spacing { get; set; }

Property Value

int

Remarks

Defaults to 3.

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnParametersSet()

protected override void OnParametersSet()

See Also