2 Answers, 1 is accepted
As of UI for Blazor 4.x, use FontAwesome with the Icon parameter of our components like this:
<TelerikButton Icon="@(" fa-solid fa-code ")" />
The main question is "how to set custom CSS classes" for icons and our documentation shows this:
- Button Icons
- Menu Icons
- TreeView Icons
- You can find similar articles for other components
Yes thank you...
To be more clear it would be nice if you had a template/file (or even just a checkbox in themebuilder) to use that would replace all the button icons with fontawesome version also giving us strongly typed use of all their icons instead of just using strings.
Recalling the challenge with FontAwesomes' last upgrade where fas -> fa-solid and bar-chart -> chart-bar. If we had ButtonIcons.BarChart it would be an easy change
Hello,
You can use the IconClass to set the desired custom classes from a third party solution, provided they set icon glyphs in the ::before element. You can find examples and more information here: https://docs.telerik.com/blazor-ui/common-features/font-icons. The same pattern that you see described there for the standalone icon component applies to all places we have icons.
Also, you can add custom classes like that to add more CSS overrides as necessary to put in third party icons.
Lastly, various templates likely let you replace some of the built-in rendering with custom code so that you can employ any approach you need/want.
Regards,
Marin Bratanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.