Class RadzenIcon
RadzenIcon component. Displays icon from Material Symbols variable font.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenIcon : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Examples
<RadzenIcon Icon="3d_rotation" />
Constructors
RadzenIcon()
RadzenIcon component. Displays icon from Material Symbols variable font.
Declaration
public RadzenIcon()
Examples
<RadzenIcon Icon="3d_rotation" />
Properties
Icon
Gets or sets the icon.
Declaration
[Parameter]
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
string | The icon. |
IconColor
Gets or sets the icon color.
Declaration
[Parameter]
public string IconColor { get; set; }
Property Value
Type | Description |
---|---|
string | The icon color. |
IconStyle
Specifies the display style of the icon.
Declaration
[Parameter]
public IconStyle? IconStyle { get; set; }
Property Value
Type | Description |
---|---|
IconStyle? |
Methods
BuildRenderTree(RenderTreeBuilder)
RadzenIcon component. Displays icon from Material Symbols variable font.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | __builder |
Overrides
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
string |