@namespace Connected.Components
@inherits UIComponent

<div @attributes="CustomAttributes" class=@Classname disabled="@Disabled">
    <button @onclick="ExpandedToggle" tabindex="0" class="@ButtonClassname">
        @if (!String.IsNullOrEmpty(Icon))
        {
            <Icon Icon="@Icon" Color="@IconColor" Class="@IconClassname" />
        }
        <div Class="nav-link-text">
            @Title
        </div>
        @if (!HideExpandIcon)
        {
            <Icon Icon="@ExpandIcon" class="@ExpandIconClassname" />
        }
    </button>
    <Collapse Expanded="@Expanded" MaxHeight="@MaxHeight" Class="navgroup-collapse">
        <NavMenu>
            @ChildContent
        </NavMenu>
    </Collapse>
</div>