UI/Components/VerticalMenu.razor

A Razor UI component named VerticalMenu that inherits Sandbox.UI.Panel. It renders a root element containing the child RenderFragment 'Options' and exposes a public 'Value' parameter intended to represent the currently selected value of sub-menus.

@using Sandbox;
@using Sandbox.UI;
@inherits Panel
@namespace Sandbox

<root>
    @Options
</root>

@code
{

    [Parameter] public RenderFragment Options { get; set; }

    /// <summary>
    /// The currently selected value of any sub-menus
    /// </summary>
    [Parameter] public object Value { get; set; }

}