Class TwAvatarTheme
- Namespace
- TwBlazor.Configuration.Components
- Assembly
- TwBlazor.dll
Theme configuration for the avatar component (TwAvatar). Override any property to customize avatar styles globally.
[ExcludeFromCodeCoverage]
public class TwAvatarTheme
- Inheritance
-
TwAvatarTheme
- Inherited Members
Constructors
TwAvatarTheme()
public TwAvatarTheme()
Properties
Base
Gets or sets the base classes applied to every avatar: its layout, clipping and text weight.
public required string Base { get; set; }
Property Value
Colors
Gets or sets the background and text classes for each Color, shown behind initials and icons.
public required TwBlazorPalette Colors { get; set; }
Property Value
ExtraLarge
Gets or sets the size and text-size classes for ExtraLarge.
public required string ExtraLarge { get; set; }
Property Value
Icon
Gets or sets the classes for the fallback icon. Its size follows the avatar's text size.
public required string Icon { get; set; }
Property Value
Image
Gets or sets the classes for the image, which fills the avatar and is cropped to its shape.
public required string Image { get; set; }
Property Value
Large
Gets or sets the size and text-size classes for Large.
public required string Large { get; set; }
Property Value
Medium
Gets or sets the size and text-size classes for Medium.
public required string Medium { get; set; }
Property Value
Neutral
Gets or sets the background and text classes used when no color is set.
public required string Neutral { get; set; }
Property Value
Small
Gets or sets the size and text-size classes for Small.
public required string Small { get; set; }