Added the possibility to specify classes

This commit is contained in:
tsommer committed 2022-08-12 23:56:55 +02:00
1 parent f20a1f2ca3
commit 0dd1e3ba29
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -1 +1 @@
<img src="icons/@this.Filename" class="d-inline-block" width="@this.Size" height="@this.Size" alt="@this.AltText" />
<img src="icons/@this.Filename" class="d-inline-block @this.Classes" width="@this.Size" height="@this.Size" alt="@this.AltText" />
@@ -12,4 +12,7 @@ public partial class Icon : ComponentBase
[Parameter]
public ushort Size { get; set; } = 35;
[Parameter]
public string Classes { get; set; } = string.Empty;
}