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;
|
||||||
|
}
|
||||||
@@ -6,3 +6,4 @@
|
|||||||
@using Microsoft.JSInterop
|
@using Microsoft.JSInterop
|
||||||
@using UI_MAUI
|
@using UI_MAUI
|
||||||
@using UI_MAUI.Shared
|
@using UI_MAUI.Shared
|
||||||
|
@using UI_MAUI.Components;
|
||||||
Reference in new issue
Block a user