Table of Contents

Class CustomIconDefinition

Namespace
Dmnk.Icons.Blazor
Assembly
Dmnk.Icons.Blazor.dll

Allows defining a custom blazor-only icon directly as a markup string. This is useful especially for using Icon libraries that were designed for Blazor and don't have a direct SVG representation, but can be rendered as a Blazor component or markup string.

public abstract class CustomIconDefinition : IconDefinition
Inheritance
CustomIconDefinition
Inherited Members

Constructors

CustomIconDefinition(string)

Allows defining a custom blazor-only icon directly as a markup string. This is useful especially for using Icon libraries that were designed for Blazor and don't have a direct SVG representation, but can be rendered as a Blazor component or markup string.

protected CustomIconDefinition(string technicalName)

Parameters

technicalName string

Methods

ToMarkup(Color?, int?)

Return a MarkupString that represents this icon to render in the DOM.

public abstract MarkupString ToMarkup(Color? color = null, int? size = null)

Parameters

color Color?

An optional color to apply. If null, the definition's own default color is used.

size int?

An optional size in pixels to render at. If null, the definition's own default size is used.

Returns

MarkupString