HtmlForgeX

API Reference

Class

TablerAvatar

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Displays an avatar image or icon with optional styling.

Inheritance

Constructors

Methods

BackgroundColor 3 overloads
public TablerAvatar BackgroundColor(TablerColor color) #
Returns: TablerAvatar

Initializes or configures BackgroundColor.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public TablerAvatar BackgroundColor(RGBColor backgroundColor, RGBColor textColor = null) #
Returns: TablerAvatar

Set custom background color using RGBColor for precise color control

Parameters

backgroundColor HtmlForgeX.RGBColor requiredposition: 0
textColor HtmlForgeX.RGBColor = null optionalposition: 1
public TablerAvatar BackgroundColor(String hexBackgroundColor, String hexTextColor = null) #
Returns: TablerAvatar

Set custom background color using hex string for precise color control

Parameters

hexBackgroundColor System.String requiredposition: 0
hexTextColor System.String = null optionalposition: 1
GetAuxiliaryChildren() #
public TablerAvatar Image(String url) #
Returns: TablerAvatar

Initializes or configures Image.

Parameters

url System.String requiredposition: 0
public TablerAvatar Initials(String initials) #
Returns: TablerAvatar

Render initials inside the avatar (e.g., "AB").

Parameters

initials System.String requiredposition: 0
public TablerAvatar Margin(TablerMarginStyle margin) #
Returns: TablerAvatar

Initializes or configures Margin.

Parameters

margin HtmlForgeX.TablerMarginStyle requiredposition: 0
RegisterLibraries() #
public TablerAvatar Rounded(Boolean rounded = true) #
Returns: TablerAvatar

Renders the avatar as a circle/rounded pill. Default avatars are slightly rounded squares.

Parameters

rounded System.Boolean = true optionalposition: 0
public TablerAvatar Size(AvatarSize size) #
Returns: TablerAvatar

Initializes or configures Size.

Parameters

size HtmlForgeX.AvatarSize requiredposition: 0
public TablerAvatar TextColor(TablerColor color) #
Returns: TablerAvatar

Initializes or configures TextColor.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public override String ToString() #
Returns: String

Initializes or configures ToString.