This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy at the same URL with .md appended. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

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

Pill TocVariant
Default: 1
Rounded pill buttons with a tinted active background — the DocSite sidebar look.
Rail TocVariant
Default: 0
Bordered 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
; }