Thorsten Sommer
4b62e5265c
- Added a NavItem component - Replaced the navbar toggle icon - Made the navbar tighter - Fixed the navbar's padding - Render the nav items dynamically
20 lines
451 B
C#
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}";
|
|
} |