HtmlForgeX

API Reference

Class

EmailRepoStatsCard

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

A compact repository stats card (title/description + metric tiles + optional CTA) for weekly digests.

Inheritance

Constructors

Methods

AddMetric 2 overloads
public EmailRepoStatsCard AddMetric(String value, String label, String icon = "", String subtitle = "", String href = "") #
Returns: EmailRepoStatsCard

Adds a metric.

Parameters

value System.String requiredposition: 0
label System.String requiredposition: 1
icon System.String = "" optionalposition: 2
subtitle System.String = "" optionalposition: 3
href System.String = "" optionalposition: 4
public EmailRepoStatsCard AddMetric(Action<EmailRepoMetric> configure) #
Returns: EmailRepoStatsCard

Adds a metric configured via callback.

Parameters

configure System.Action{HtmlForgeX.Email.EmailRepoMetric} requiredposition: 0
public override String ToString() #
Returns: String
public EmailRepoStatsCard WithButton(String text, String href, EmailButtonStyle style = Secondary, EmailButtonSize size = Small) #
Returns: EmailRepoStatsCard

Sets CTA button.

Parameters

text System.String requiredposition: 0
href System.String requiredposition: 1
style HtmlForgeX.Email.EmailButtonStyle = Secondary optionalposition: 2
size HtmlForgeX.Email.EmailButtonSize = Small optionalposition: 3
public EmailRepoStatsCard WithDescription(String description) #
Returns: EmailRepoStatsCard

Sets description.

Parameters

description System.String requiredposition: 0
public EmailRepoStatsCard WithTitle(String title, String href = null) #
Returns: EmailRepoStatsCard

Sets the title and optional link.

Parameters

title System.String requiredposition: 0
href System.String = null optionalposition: 1

Properties

public String Icon { get; set; } #

Optional icon shown next to the repo title (emoji or short text).

public String Title { get; set; } #

Repository title (e.g. "HtmlForgeX.Email").

public String Description { get; set; } #

Optional description under the title.

public String Href { get; set; } #

Optional URL for the title.

public List<EmailRepoMetric> Metrics { get; } #

Metrics shown under the header.

public Int32 MetricColumns { get; set; } #

Number of metric columns.

public GridGap MetricGap { get; set; } #

Gap between metric tiles.

public Boolean StackOnMobile { get; set; } #

Whether to stack metrics on mobile.

public String ButtonText { get; set; } #

Button text.

public String ButtonHref { get; set; } #

Button URL (defaults to Href when empty).

public EmailButtonStyle ButtonStyle { get; set; } #

Button style.

public EmailButtonSize ButtonSize { get; set; } #

Button size.

public String BackgroundColor { get; set; } #

Background color.

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.

public String DescriptionColor { get; set; } #

Description color.