Demos
For examples and details on the usage of this component, visit the component demo page:
AvatarGroup
Properties
| Parameter | Type | Description | Default |
|---|---|---|---|
| FallbackContent | RenderFragment |
Gets or sets the content to render when the avatar image is unavailable. | - |
| IconContent | RenderFragment |
Gets or sets the content to render as the icon when no image or initials are available. | - |
| Src | string |
Gets or sets the URL of the avatar image. | - |
| Alt | string |
Gets or sets the alternative text for the avatar image. | - |
| Name | string |
Gets or sets the name associated with the avatar, used to generate initials if no image is provided. | - |
| ShowFallback | bool |
Gets or sets a value indicating whether to show fallback content when the avatar image is unavailable. | true |
| Bordered | bool |
Gets or sets a value indicating whether the border should be added around the avatar. | false |
| Size | Size |
Gets or sets the size of the avatar. | Medium |
| Color | ThemeColor |
Gets or sets the color of the avatar. | Default |
| Radius | Radius |
Gets or sets the border radius of the avatar. | Full |
| Initials | Func<string, string> |
Gets or sets the function that resolves initials from the provided name. | - |
| Classes | AvatarSlots |
Gets or sets the CSS class names for the avatar slots. | - |
| As | string |
Gets or sets an HTML tag of the component. | - |
| Class | string |
Gets or sets CSS class names that will be applied to the component. | - |
| Style | string |
Gets or sets styles that will be applied to the component. | - |
| AdditionalAttributes | IReadOnlyDictionary<string, object> |
Gets or sets a collection of additional attributes that will be applied to the component. | - |
| ElementReference | ElementReference? |
Gets or sets the associated . May be if accessed before the component is rendered. | - |
Methods
| Method | Type | Description |
|---|---|---|
| SetParametersAsync | Task |
|
| DisposeAsync | ValueTask |