Added the icon component

This commit is contained in:
tsommer committed 2022-08-09 21:27:30 +02:00
1 parent 1de5753588
commit a191d4a909
3 files changed
+17

No files matched your search

@@ -0,0 +1 @@
<img src="icons/@this.Filename" class="d-inline-block" width="@this.Size" height="@this.Size" alt="@this.AltText" />
@@ -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;
}