MudBlazor

MudAvatar API

Pages

Properties

Name Type Default Description
Alt
String

null

If set (and Image is also set), will add an alt property to the img element
ChildContent
RenderFragment

null

Child content of the component.
Color
Color

Color.Default

The color of the component. It supports the theme colors.
Elevation
Int32

0

The higher the number, the heavier the drop-shadow.
Image
String

null

Link to image, if set a image will be displayed instead of text.
Rounded
Boolean

False

If true, border-radius is set to the themes default value.
Size
Size

Size.Medium

The Size of the MudAvatar.
Square
Boolean

False

If true, border-radius is set to 0.
Variant
Variant

Variant.Filled

The variant to use.
Inherited from MudComponentBase
Class
String

null

User class names, separated by space.
Style
String

null

User styles, applied on top of the component's own classes and styles.
Tag
Object

null

Use Tag to attach any user data object to the component for your convenience.
UserAttributes
Dictionary<String, Object>

UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag.

Methods

Name Parameters Return Description
Dispose()
An error has occurred. This application may no longer respond until reloaded. Reload 🗙