Table of Contents

Class FeatherIcon

Namespace
The.Web.Controls
Assembly
Instagile.Web.Client.dll

An SVG icon from https://feathericons.com/.

public class FeatherIcon : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender
Inheritance
FeatherIcon
Implements
Inherited Members

Remarks

Icon names are references to a sprite atlas at _content/Instagile.Web.Client/feather/dist/feather-sprite.svg.

Will be styled appropriately if used inside a button or link.

Properties

Level

Optional colour scheme.

[Parameter]
public MessageLevel? Level { get; set; }

Property Value

MessageLevel?

Name

An icon identifier from https://feathericons.com/.

[Parameter]
[EditorRequired]
public required string Name { get; set; }

Property Value

string

Splat

Extra attributes for the underlying <svg> tag.

[Parameter(CaptureUnmatchedValues = true)]
public Dictionary<string, object>? Splat { get; set; }

Property Value

Dictionary<string, object>

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder