You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/Icon/Icon.razor

19 lines
500 B

@namespace Connected.Components
@inherits UIComponent
@if (!string.IsNullOrEmpty(Glyph) && Glyph.Trim().StartsWith(("<")))
{
<svg @attributes="UserAttributes" class="@Classname" style="@Style" focusable="false" viewBox="@ViewBox" aria-hidden="true">
@if (Title != null)
{
<title>@Title</title>
}
@((MarkupString)Glyph)
</svg>
}
else
{
<span @attributes="UserAttributes" class="@($"{Classname} {Glyph}")" style="@Style" title="@Title" />
}