1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2024-11-22 08:42:44 +01:00
Minecraft-Phantom-Panel/Server/Phantom.Server.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; } = "";
}