Spinner

in namespace DotVVM.Bootstrap5.Controls

Renders a Boostrap spinner.

Usage & Scenarios

Spinners can be used as loading animation.

https://getbootstrap.com/docs/5.2/components/spinners/

Sample 1: Basic Spinners

The Spinner control has the Type property which you can use to set the color of the component.

The size of the control can be configured via Size property.

<bs:Spinner />
<bs:Spinner Type="Success" />
<bs:Spinner Size="Small"/>

Sample 2: Visual style

The design of the spinner can be modified by VisualStyle property.

<bs:Spinner />
<bs:Spinner VisualStyle="Grow" />

Sample 3: Screen reader only text

The Spinner component can generate an alternate text for screen readers.
The default text is "Loading...".

The text can be changed using ScreenReaderOnlyText property.

<bs:Spinner ScreenReaderOnlyText="Processing" />

Properties

Name Type Description Notes Default Value
property icon Color BootstrapTextColor Gets or sets the color of the Spinner component.
attribute
inner element
static value
bindable
default
Dark
property icon ScreenReaderOnlyText String Gets or sets text displayed to users of screen readers.
attribute
inner element
static value
bindable
default
Loading...
property icon Size SpinnerSize Gets or sets the size of the Spinner component. Possible values are Default or Small.
attribute
inner element
static value
bindable
default
Default
property icon Visible Boolean Gets or sets whether the control is visible. When set to false, `style="display: none"` will be added to this control.
attribute
inner element
static value
bindable
default
True
property icon VisualStyle SpinnerVisualStyle Gets or sets the style of the Spinner component. Possible values are Grow or Spinner.
attribute
inner element
static value
bindable
default
Spinner

HTML produced by the control