TocVariant
Pennington.UI.Components.Navigation
Visual archetype for TableOfContentsNavigation. A variant names a cohesive look; per-instance *Class parameters Tailwind-merge on top of it for one-off tweaks. The class strings live in For — inline literals in a method body, so an edit hot-reloads under dotnet watch (unlike a static dictionary, whose initializer only runs once).
Fields
PillTocVariant- Default:
1Rounded pill buttons with a tinted active background — the DocSite sidebar look. RailTocVariant- Default:
0Bordered rail: a left border with the active child marked by a colored edge. The bare Pennington.UI default.
Pennington.UI.Components.Navigation.TocVariant
namespace Pennington.UI.Components.Navigation;
/// Visual archetype for TableOfContentsNavigation. A variant names a cohesive look; per-instance *Class parameters Tailwind-merge on top of it for one-off tweaks. The class strings live in For — inline literals in a method body, so an edit hot-reloads under dotnet watch (unlike a static dictionary, whose initializer only runs once).
public enum TocVariant
{
/// Rounded pill buttons with a tinted active background — the DocSite sidebar look.
public static const TocVariant Pill
;
/// Bordered rail: a left border with the active child marked by a colored edge. The bare Pennington.UI default.
public static const TocVariant Rail
;
}