Added the possibility to specify classes

This commit is contained in:
Thorsten Sommer 2022-08-12 23:56:55 +02:00
parent f20a1f2ca3
commit 0dd1e3ba29
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 4 additions and 1 deletions

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" />

View File

@ -12,4 +12,7 @@ public partial class Icon : ComponentBase
[Parameter] [Parameter]
public ushort Size { get; set; } = 35; public ushort Size { get; set; } = 35;
[Parameter]
public string Classes { get; set; } = string.Empty;
} }