diff --git a/I18N Commander/UI MAUI/Components/Icon.razor b/I18N Commander/UI MAUI/Components/Icon.razor new file mode 100644 index 0000000..3ae9ae5 --- /dev/null +++ b/I18N Commander/UI MAUI/Components/Icon.razor @@ -0,0 +1 @@ +@this.AltText \ No newline at end of file diff --git a/I18N Commander/UI MAUI/Components/Icon.razor.cs b/I18N Commander/UI MAUI/Components/Icon.razor.cs new file mode 100644 index 0000000..8bd9d5c --- /dev/null +++ b/I18N Commander/UI MAUI/Components/Icon.razor.cs @@ -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; +} \ No newline at end of file diff --git a/I18N Commander/UI MAUI/_Imports.razor b/I18N Commander/UI MAUI/_Imports.razor index f91d724..a01cd8e 100644 --- a/I18N Commander/UI MAUI/_Imports.razor +++ b/I18N Commander/UI MAUI/_Imports.razor @@ -6,3 +6,4 @@ @using Microsoft.JSInterop @using UI_MAUI @using UI_MAUI.Shared +@using UI_MAUI.Components; \ No newline at end of file