@* A collapsible sidebar nav section: an uppercase-eyebrow header button that
toggles the visibility of its child nav items. The header
and the item
s (ChildContent) render as siblings inside NavMenu's
. *@
@if (Expanded)
{
@ChildContent
}
@code {
/// Section label shown in the header (e.g. "Deployment").
[Parameter, EditorRequired]
public string Title { get; set; } = string.Empty;
/// Whether the section is expanded — its items rendered.
[Parameter]
public bool Expanded { get; set; }
/// Raised when the header button is clicked.
[Parameter]
public EventCallback OnToggle { get; set; }
/// The section's nav items, rendered only while expanded.
[Parameter]
public RenderFragment? ChildContent { get; set; }
}