ContentTabsRenderOptions
Pennington.Markdown.Extensions.Tabs
Options for customizing the CSS classes used in the content-tabs renderer. The tab strip carries not-prose while the panels do not, so panel content keeps the page's prose typography.
Properties
ContainerCssstring- requiredCSS classes for the outer container; intentionally not
not-prose. TabButtonCssstring- requiredCSS classes for each tab button.
TabListCssstring- requiredCSS classes for the tab strip; carries
not-proseto isolate the buttons. TabPanelCssstring- requiredCSS classes for each tab panel; intentionally not
not-prose.
Fields
DefaultContentTabsRenderOptions- Default CSS class configuration used by the content-tabs renderer.
Pennington.Markdown.Extensions.Tabs.ContentTabsRenderOptions
namespace Pennington.Markdown.Extensions.Tabs;
/// Options for customizing the CSS classes used in the content-tabs renderer. The tab strip carries not-prose while the panels do not, so panel content keeps the page's prose typography.
public record ContentTabsRenderOptions
{
/// CSS classes for the outer container; intentionally not not-prose.
public string ContainerCss { get; set; }
/// Default CSS class configuration used by the content-tabs renderer.
public static readonly ContentTabsRenderOptions Default
;
/// CSS classes for each tab button.
public string TabButtonCss { get; set; }
/// CSS classes for the tab strip; carries not-prose to isolate the buttons.
public string TabListCss { get; set; }
/// CSS classes for each tab panel; intentionally not not-prose.
public string TabPanelCss { get; set; }
}