Added the icon component

This commit is contained in:
Thorsten Sommer 2022-08-09 21:27:30 +02:00
parent 1de5753588
commit a191d4a909
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
3 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1 @@
<img src="icons/@this.Filename" class="d-inline-block" width="@this.Size" height="@this.Size" alt="@this.AltText" />

View File

@ -0,0 +1,15 @@
using Microsoft.AspNetCore.Components;
namespace UI_MAUI.Components;
public partial class Icon : ComponentBase
{
[Parameter]
public string Filename { get; set; } = string.Empty;
[Parameter]
public string AltText { get; set; } = string.Empty;
[Parameter]
public ushort Size { get; set; } = 35;
}

View File

@ -6,3 +6,4 @@
@using Microsoft.JSInterop
@using UI_MAUI
@using UI_MAUI.Shared
@using UI_MAUI.Components;