I18NCommander/I18N Commander/UI MAUI/Components/NavItem.razor.cs
Thorsten Sommer 4b62e5265c
Finished the navigation menu
- Added a NavItem component
- Replaced the navbar toggle icon
- Made the navbar tighter
- Fixed the navbar's padding
- Render the nav items dynamically
2022-08-10 21:05:38 +02:00

20 lines
451 B
C#

using Microsoft.AspNetCore.Components;
namespace UI_MAUI.Components;
public partial class NavItem : ComponentBase
{
[Parameter]
public string Route { get; set; }
[Parameter]
public string Text { get; set; }
[Parameter]
public bool ShowIcon { get; set; } = false;
[Parameter]
public string IconFilename { get; set; } = string.Empty;
private string AltText => $"Navigation: {this.Text}";
}