Table of Contents

Class MBIcon

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

Renders icons from any of the Material Icons, Font Awesome and Open Iconic foundries. Material Icons are essential for Material.Blazor and are included by the library's CSS, while you can elect whether to include Font Awesome and Open Iconic in your app.

public class MBIcon : ComponentFoundation, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
MBIcon
Implements
Inherited Members

Constructors

MBIcon()

public MBIcon()

Properties

IconFoundry

The foundry.

IconFoundry="IconHelper.MIIcon()"

IconFoundry="IconHelper.MSIcon()"

IconFoundry="IconHelper.FAIcon()"

IconFoundry="IconHelper.OIIcon()"

Overrides IconFoundryName

[Parameter]
public IMBIconFoundry? IconFoundry { get; set; }

Property Value

IMBIconFoundry

IconName

The icon name.

[Parameter]
public string IconName { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder builder)

Parameters

builder RenderTreeBuilder

A RenderTreeBuilder that will receive the render output.

OnParametersSetAsync()

When overriding this, call await base.OnParametersSetAsync(); before any user code unless there is a very good reason not to.

protected override Task OnParametersSetAsync()

Returns

Task