Table of Contents

Class TwSpinner

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

Represents an animated loading indicator.

public class TwSpinner : TwBlazorComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent
Inheritance
TwSpinner
Implements
Inherited Members

Constructors

TwSpinner()

public TwSpinner()

Properties

Color

Gets or sets the color of the spinning arc.

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

Property Value

Color?

Remarks

If not set, defaults to blue.

Label

Gets or sets the text announced to assistive technology while the spinner is visible.

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

Property Value

string

Remarks

Always rendered in the DOM so the spinner has an accessible name; visually hidden unless ShowLabel is true.

ShowLabel

Gets or sets whether Label is displayed visibly next to the spinner, instead of only being announced to assistive technology.

[Parameter]
public bool ShowLabel { get; set; }

Property Value

bool

Size

Gets or sets the size of the spinner.

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

Property Value

SpinnerSize

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder