Class MudIcon
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
public class MudIcon : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
- Inheritance
-
MudIcon
- Implements
- Inherited Members
- Extension Methods
Constructors
MudIcon()
public MudIcon()
Properties
ChildContent
Child content of component.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Classname
protected string Classname { get; }
Property Value
Color
The color of the component. It supports the theme colors.
[Parameter]
[Category("Appearance")]
public Color Color { get; set; }
Property Value
Disabled
If true, will ignore custom color if set.
[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }
Property Value
Icon
Icon to be used can either be svg paths for font icons.
[Parameter]
[Category("Behavior")]
public string? Icon { get; set; }
Property Value
Size
The Size of the icon.
[Parameter]
[Category("Appearance")]
public Size Size { get; set; }
Property Value
Title
Text for the title
attribute which provides a basic tooltip.
[Parameter]
[Category("Behavior")]
public string? Title { get; set; }
Property Value
ViewBox
The viewbox size of an svg element.
[Parameter]
[Category("Behavior")]
public string ViewBox { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder