1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2024-10-17 03:42:50 +02:00
Minecraft-Phantom-Panel/Web/Phantom.Web/Layout/NavMenuItem.razor

25 lines
468 B
Plaintext

<div class="nav-item">
<NavLink class="nav-link" href="@Href" Match="@Match">
@if (Icon != null) {
<span class="oi oi-@Icon" aria-hidden="true"></span>
}
<span class="nav-label">@Label</span>
</NavLink>
</div>
@code {
[Parameter]
public string Href { get; set; } = "";
[Parameter]
public NavLinkMatch Match { get; set; }
[Parameter]
public string? Icon { get; set; }
[Parameter]
public string Label { get; set; } = "";
}