Class CustomIconDefinition
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
technicalNamestring
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
colorColor?An optional color to apply. If null, the definition's own default color is used.
sizeint?An optional size in pixels to render at. If null, the definition's own default size is used.