You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common-features/font-icons.md
+3-13Lines changed: 3 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,13 +23,7 @@ In this article:
23
23
24
24
Telerik UI for Blazor comes with the `TelerikIcon` component that you can use to render icons. It works with the following image types:
25
25
26
-
***Telerik font icon** - the `Telerik.Blazor.IconName` static class allows you to supply an `Icon` parameter that takes a **Telerik icon** from our built-in collection. To find the available **Telerik icons**, you can:
27
-
28
-
* Use Visual Studio's IntelliSense.
29
-
30
-
* Refer to the [online API Reference](https://docs.telerik.com/blazor-ui/api/Telerik.Blazor.IconName) article.
31
-
32
-
>tip Telerik UI for Blazor uses the same icons as the Kendo UI suite. You can find the rendered icons in the [Kendo UI Web Font Icons Library](https://docs.telerik.com/kendo-ui/styles-and-layout/icons-web) article. When you use the icon names in this article, remove the `k-i-` prefix, and you will get the correct icon name for Blazor UI. You can use them as hardcoded strings as well. Their corresponding class members are in `CamelCase`.
26
+
***Telerik font icon** - Telerik UI for Blazor uses the same icons as the Kendo UI suite. You can find the rendered icons in the [Kendo UI Web Font Icons Library](https://docs.telerik.com/kendo-ui/styles-and-layout/icons-web) article. When you use the icon names in this article, remove the `k-i-` prefix, and you will get the correct icon name for Blazor UI.
33
27
34
28
***Third party font-icon** - the `IconClass` parameter lets you set a CSS class that provides the required font name, font size and content for the `::before` pseudoelement.
35
29
@@ -40,9 +34,7 @@ Telerik UI for Blazor comes with the `TelerikIcon` component that you can use to
40
34
>caption Render a standalone icon through the TelerikIcon component
41
35
42
36
````CSHTML
43
-
<TelerikIcon Icon="@IconName.Audio" /> @* will render the audio note icon *@
44
-
45
-
@* <TelerikIcon Icon="audio" /> *@ @* This would also render the same audio icon *@
37
+
<TelerikIcon Icon="audio" /> @* will render the audio note icon *@
46
38
47
39
<TelerikIcon IconClass="oi oi-home" /> @* home icon from OpenIconic, assuming you have loaded the font on the page, you can use your own CSS classes and font icon fonts *@
48
40
@@ -71,9 +63,7 @@ Some Telerik components expose icon features out-of-the box. These parameters ma
71
63
>caption How to use a built-in font icon class on a component's Icon property
72
64
73
65
````CSHTML
74
-
<TelerikButton Icon="@IconName.Filter">I show the Filter icon</TelerikButton>
75
-
<br />
76
-
<TelerikButton Icon="filter">I also show the Filter icon through a hardcoded class name</TelerikButton>
66
+
<TelerikButton Icon="filter">I show the Filter icon</TelerikButton>
0 commit comments