Table of Contents

Class BOBSvgIcon

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.dll
[GenerateComponentInfo]
public class BOBSvgIcon : BOBVariantComponentBase<BOBSvgIcon, BOBSvgIconVariant>, IVariantComponent<BOBSvgIconVariant>, IVariantComponent, IHasSize, IHasColor
Inheritance
object
ComponentBase
BOBSvgIcon
Implements
Inherited Members

Constructors

BOBSvgIcon()

public BOBSvgIcon()

Properties

BuiltInTemplates

protected override Dictionary<BOBSvgIconVariant, Func<BOBSvgIcon, RenderFragment>> BuiltInTemplates { get; }

Property Value

Dictionary<BOBSvgIconVariant, Func<BOBSvgIcon, RenderFragment>>

Color

Text or foreground color. Accepts any valid CSS color value, PaletteColor or BOBColor.

[Parameter]
public string? Color { get; set; }

Property Value

string

DefaultVariant

Default variant used when no explicit variant is specified.

public override BOBSvgIconVariant DefaultVariant { get; }

Property Value

BOBSvgIconVariant

Icon

Closed-catalog icon key (obtain from BOBIconKeys).

[Parameter]
[EditorRequired]
public required IconKey Icon { get; set; }

Property Value

IconKey

OnClick

Raised when the component is clicked.

[Parameter]
public EventCallback<MouseEventArgs> OnClick { get; set; }

Property Value

EventCallback<MouseEventArgs>

Size

Visual size of the component.

[Parameter]
public BOBSize Size { get; set; }

Property Value

BOBSize

Title

Tooltip text displayed on hover.

[Parameter]
public string? Title { get; set; }

Property Value

string

ViewBox

ViewBox.

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

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder