Added the icon component
This commit is contained in:
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;
|
||||
}
|
||||
Reference in new issue
Block a user