You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/NavMenu/NavGroup.razor

23 lines
742 B

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