@namespace Connected.Components
@inherits UIComponent
@typeparam T

<ul @attributes="CustomAttributes" class="@Classname" style="@Stylename">
    <CascadingValue Value="@MudTreeRoot" IsFixed="true">
        @if (ItemTemplate != null && Items != null)
        {
            @foreach (var item in Items)
            {
                @ItemTemplate(item)
            }
        }
        else if (ChildContent != null)
        {
            @ChildContent
        }
    </CascadingValue>
</ul>