Class MBIcon
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.
Implements
Inherited Members
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public class MBIcon : ComponentFoundation, IDisposable
Properties
| Improve this Doc View SourceIconFoundry
The foundry.
IconFoundry="IconHelper.MIIcon()"
IconFoundry="IconHelper.FAIcon()"
IconFoundry="IconHelper.OIIcon()"
Overrides IconFoundryName
Declaration
public IMBIconFoundry IconFoundry { get; set; }
Property Value
Type | Description |
---|---|
IMBIconFoundry |
IconName
The icon name.
Declaration
public string IconName { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceBuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | builder |
OnParametersSetAsync()
When overriding this, call await base.OnParametersSetAsync();
before any user code unless there is a very good reason not to.
Declaration
protected override async Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
Task |