TelerikSvgIcon
Renders a Telerik SVG icon or custom SVG markup. Provide a predefined icon via ISvgIcon in Icon (preferred), or custom SVG through ChildContent. See Icons documentation for usage and icon lists.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikSvgIcon : IconBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentIconBaseTelerikSvgIcon
Implements:
Inherited Members
Constructors
public TelerikSvgIcon()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
protected override void OnParametersSet()
Overrides:
public void ThrowIfNoIconIsProvided()
Properties
Defines the child content of the component. Use to render custom svg markup.
[Parameter]
public RenderFragment ChildContent { get; set; }
Icon
ISvgIcon
Specifies a predefined Telerik icon to be rendered. Takes precedence over custom icons defined within ChildContent. Refer to SvgIcon Documentation for more information.
[Parameter]
public ISvgIcon Icon { get; set; }
Specifies the icon variant to render (e.g., solid, outline, duotone). When set, the component renders the SVG content from the matching variant entry in the icon definition. Falls back to the default icon content if the variant is not found or the icon has no variants.
[Parameter]
public string Variant { get; set; }