Table of Contents

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

RenderFragment

Classname

protected string Classname { get; }

Property Value

string

Color

The color of the component. It supports the theme colors.

[Parameter]
[Category("Appearance")]
public Color Color { get; set; }

Property Value

Color

Disabled

If true, will ignore custom color if set.

[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }

Property Value

bool

Icon

Icon to be used can either be svg paths for font icons.

[Parameter]
[Category("Behavior")]
public string? Icon { get; set; }

Property Value

string

Size

The Size of the icon.

[Parameter]
[Category("Appearance")]
public Size Size { get; set; }

Property Value

Size

Title

Text for the title attribute which provides a basic tooltip.

[Parameter]
[Category("Behavior")]
public string? Title { get; set; }

Property Value

string

ViewBox

The viewbox size of an svg element.

[Parameter]
[Category("Behavior")]
public string ViewBox { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder