Added the icon component
This commit is contained in:
parent
1de5753588
commit
a191d4a909
1
I18N Commander/UI MAUI/Components/Icon.razor
Normal file
1
I18N Commander/UI MAUI/Components/Icon.razor
Normal file
@ -0,0 +1 @@
|
|||||||
|
<img src="icons/@this.Filename" class="d-inline-block" width="@this.Size" height="@this.Size" alt="@this.AltText" />
|
15
I18N Commander/UI MAUI/Components/Icon.razor.cs
Normal file
15
I18N Commander/UI MAUI/Components/Icon.razor.cs
Normal 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;
|
||||||
|
}
|
@ -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;
|
Loading…
Reference in New Issue
Block a user