HtmlForgeX

API Reference

Class

TablerHero

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Represents a Tabler hero section component with title, subtitle, and customizable styling.

Inheritance

Constructors

public TablerHero() #

Initializes a new instance of the TablerHero class.

Methods

public TablerHero AsCard(Boolean isCard = true) #
Returns: TablerHero

Sets whether the hero should be rendered as a card.

Parameters

isCard System.Boolean = true optionalposition: 0
public override String ToString() #
Returns: String
public TablerHero WithBackgroundColor(TablerColor color) #
Returns: TablerHero

Sets the background color of the hero section.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public TablerHero WithDescription(String description) #
Returns: TablerHero

Sets the description text of the hero section.

Parameters

description System.String requiredposition: 0
public TablerHero WithMarginBottom(TablerMargin margin) #
Returns: TablerHero

Sets the bottom margin of the hero section.

Parameters

margin HtmlForgeX.TablerMargin requiredposition: 0
public TablerHero WithMinHeight(Int32 heightPx) #
Returns: TablerHero

Sets the minimum height of the hero section in pixels.

Parameters

heightPx System.Int32 requiredposition: 0
public TablerHero WithPaddingBottom(TablerPadding padding) #
Returns: TablerHero

Sets the bottom padding of the hero section.

Parameters

padding HtmlForgeX.TablerPadding requiredposition: 0
public TablerHero WithPaddingTop(TablerPadding padding) #
Returns: TablerHero

Sets the top padding of the hero section.

Parameters

padding HtmlForgeX.TablerPadding requiredposition: 0
public TablerHero WithSubtitle(String subtitle) #
Returns: TablerHero

Sets the subtitle of the hero section.

Parameters

subtitle System.String requiredposition: 0
public TablerHero WithTextColor(TablerColor color) #
Returns: TablerHero

Sets the text color of the hero section.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public TablerHero WithTitle(String title) #
Returns: TablerHero

Sets the main title of the hero section.

Parameters

title System.String requiredposition: 0
public TablerHero WithTitleSize(TablerTextSize size) #
Returns: TablerHero

Sets the size of the title text.

Parameters

size HtmlForgeX.TablerTextSize requiredposition: 0