HtmlForgeX

API Reference

Class

EmailCredentialCard

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Base Element
Implements
Modifiers sealed

Email-safe credential card (token/license/key) with optional metadata and actions. Designed for access tokens, license keys, API credentials and security notifications.

Inheritance

Constructors

Methods

AddAction 2 overloads
public EmailCredentialCard AddAction(Action<EmailButton> configure) #
Returns: EmailCredentialCard

Adds an action button configured via callback.

Parameters

configure System.Action{HtmlForgeX.Email.EmailButton} requiredposition: 0
public EmailCredentialCard AddAction(String text, String href, EmailButtonStyle style = Primary, EmailButtonSize size = Medium) #
Returns: EmailCredentialCard

Adds an action button.

Parameters

text System.String requiredposition: 0
href System.String requiredposition: 1
style HtmlForgeX.Email.EmailButtonStyle = Primary optionalposition: 2
size HtmlForgeX.Email.EmailButtonSize = Medium optionalposition: 3
AddDetail 2 overloads
public EmailCredentialCard AddDetail(String key, String value) #
Returns: EmailCredentialCard

Adds a key/value row.

Parameters

key System.String requiredposition: 0
value System.String requiredposition: 1
public EmailCredentialCard AddDetail(Action<EmailKeyValueRow> configure) #
Returns: EmailCredentialCard

Adds a key/value row configured via callback.

Parameters

configure System.Action{HtmlForgeX.Email.EmailKeyValueRow} requiredposition: 0
public override String ToString() #
Returns: String
public EmailCredentialCard WithCredential(String value, String label = null, String hint = null) #
Returns: EmailCredentialCard

Sets credential value and optional label/hint.

Parameters

value System.String requiredposition: 0
label System.String = null optionalposition: 1
hint System.String = null optionalposition: 2
public EmailCredentialCard WithMaskedCredential(Boolean enabled = true, Int32 visibleSuffixChars = 6) #
Returns: EmailCredentialCard

Enables masking for the credential value.

Parameters

enabled System.Boolean = true optionalposition: 0
visibleSuffixChars System.Int32 = 6 optionalposition: 1
public EmailCredentialCard WithSubtitle(String subtitle) #
Returns: EmailCredentialCard

Sets subtitle.

Parameters

subtitle System.String requiredposition: 0
public EmailCredentialCard WithTitle(String title) #
Returns: EmailCredentialCard

Sets title.

Parameters

title System.String requiredposition: 0

Properties

public String Icon { get; set; } #

Optional icon shown on the left (emoji or short text).

public String Title { get; set; } #

Card title.

public String Subtitle { get; set; } #

Optional subtitle under the title.

public String CredentialLabel { get; set; } #

Label shown above the credential value (e.g., "Access token").

public String CredentialValue { get; set; } #

Credential value (token/license/key).

public String CredentialHint { get; set; } #

Optional hint shown under the credential block (e.g., "Treat as secret").

public Boolean MaskCredential { get; set; } #

When true, masks the credential value (useful for notifications).

public Int32 MaskVisibleSuffixChars { get; set; } #

Number of visible characters at the end when MaskCredential is enabled.

public Int32 MaskPlaceholderLength { get; set; } #

Number of mask characters shown when MaskCredential is enabled.

public Char MaskCharacter { get; set; } #

Mask character used when MaskCredential is enabled.

public Boolean BreakAll { get; set; } #

Whether to use aggressive wrapping for long values.

public List<EmailKeyValueRow> Details { get; } #

Optional key/value rows (scope, created, expires, user, etc.).

public List<EmailButton> Actions { get; } #

Actions shown under the details (0–2 recommended).

public Boolean StackActionsOnMobile { get; set; } #

Whether to stack action buttons on mobile (where media queries are supported).

public String BackgroundColor { get; set; } #

Background color (theme-aware by default).

public String BorderColor { get; set; } #

Border color.

public String BorderRadius { get; set; } #

Border radius.

public String CardPadding { get; set; } #

Card padding.

public String TitleColor { get; set; } #

Title color (theme-aware by default).

public String MutedColor { get; set; } #

Muted text color (subtitle, captions).

public String CredentialBackgroundColor { get; set; } #

Credential block background color.

public String CredentialBorderColor { get; set; } #

Credential block border color.

public String CredentialTextColor { get; set; } #

Credential value color.

public String CredentialFontSize { get; set; } #

Credential font size.

public String CredentialPadding { get; set; } #

Credential padding.