@* A collapsible sidebar nav section: an uppercase-eyebrow button that toggles
the visibility of its child nav items. Mirrors the ScadaLink NavSection at
/Users/dohertj2/Desktop/scadalink-design/src/ScadaLink.CentralUI/Components/Layout/NavSection.razor
but uses OtOpcUa's rail-eyebrow + rail-link classes. *@
@if (Expanded)
{
@ChildContent
}
@code {
/// Section label shown in the eyebrow (e.g. "Scripting").
[Parameter, EditorRequired]
public string Title { get; set; } = string.Empty;
/// Whether the section is expanded — its child links rendered.
[Parameter]
public bool Expanded { get; set; }
/// Raised when the eyebrow button is clicked.
[Parameter]
public EventCallback OnToggle { get; set; }
/// The section's child nav links, rendered only while expanded.
[Parameter]
public RenderFragment? ChildContent { get; set; }
}