![]() The Icon parameter of TelerikSvgIcon expects an ISvgIcon object. Do not use together with Icon.Īny of the predefined icon colors. However, we recommend using the properties of the static class. It is possible to set the parameter value to raw strings such as "lg", "md" or "sm". Alternatively, implement your own custom SVG Icon class.Īny of the predefined icon sizes (from "xs" to "xxxl"). Here are the available configuration parameters: ParameterĪssign a property of the SvgIcon static class to use any of the built-in Telerik Blazor font icons. The TelerikSvgIcon component can show a built-in Telerik Blazor SVG icon or a custom SVG icon. By default, the icon color will inherit the current CSS text color. However, we recommend using the properties of the static class.Īny of the predefined icon colors. Do not use together with the Icon parameter.Īny of the predefined icon sizes (from "xs" to "xxxl"). This parameter takes precedence over IconClass, if both are set.Ĭustom CSS class for a custom third-party icon. The icon's flip direction, which allows to mirror (turn over) the image horizontally, vertically, or in both directions.Īny of the built-in Telerik Blazor font icons. Here are the available configuration parameters: Parameter The TelerikFontIcon component can show a built-in Telerik Blazor font icon or a custom font icon. The sections below discuss these standalone components. However, it is possible to use standalone Icon components of both types at the same time. Usually, the app will use only one type of icons. To use the icons, import one or both namespaces, for example in _Imports.razor: Keep this in mind when using packageSourceMapping. ![]() Unlike the Telerik.UI.for.Blazor package, the icon packages are available from the source. Telerik.SvgIcons - defines the ISvgIcon interface and the SvgIcon static class for built-in SVG icons.Telerik.FontIcons - defines the FontIcon enum for easier usage of built-in font icons.They are installed automatically as dependencies of the Telerik.UI.for.Blazor package: The Telerik Blazor components use built-in icons with the help of two NuGet packages. The ImageUrl and SpriteClass parameters are no longer supported. TelerikFontIcon replaced the TelerikIcon component in version 4.0. Set global icon type for the whole application.This article contains the following sections: It is also possible to use custom icons, or define an application-wide setting, which affects the type of icons in all Telerik Blazor components. There are two ways to consume and render them - as font icons or as SVG icons. ![]() Telerik UI for Blazor provides a large set of built-in icons. Download free 30-day trial Built-in Font and SVG Icons
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |