Added the possibility to specify classes
This commit is contained in:
parent
f20a1f2ca3
commit
0dd1e3ba29
@ -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]
|
[Parameter]
|
||||||
public ushort Size { get; set; } = 35;
|
public ushort Size { get; set; } = 35;
|
||||||
|
|
||||||
|
[Parameter]
|
||||||
|
public string Classes { get; set; } = string.Empty;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user