The Blazor Spinner component denotes when long-running tasks are ongoing, tasks for which there is no information about their progress. The component provides circular progress indicators without interaction capabilities.
To show users the progress information of a task, the Blazor ProgressBar component should be used, instead.
Several built-in, Sass-based themes are available: Tailwind CSS, Bootstrap 5, Bootstrap 4, Bootstrap, Material, Fabric, and high contrast. Simplify theme customization by either overriding the existing Sass styling or creating custom themes using the Theme Studio application.
Include labels with the Blazor Spinner component that give additional, meaningful information about the task currently running.
The Spinner component can be rendered with other Blazor components, such as the Tab component. To render the Spinner inside the Tab component, the Spinner is set as a child of the Tab component, and the Spinner can be shown or hidden when switching between tabs.
Adjust the size of the Blazor Spinner component to large, medium, or small to help integrate it within other Blazor components.
Using a template, users can create a custom Blazor loading component.
You can control the Blazor Spinner component’s visibility easily through a two-way binding property and asynchronous methods.
The default appearance of the Blazor Spinner component can be customized by changing its color and stroke width. Also, you can set the z-index for Blazor spinners dynamically based on application scenarios.
Easily get started with the Blazor Spinner using a few simple lines of C# code as demonstrated below. Also explore our Blazor Spinner example that shows you how to render and configure the Blazor Spinner.
@using Syncfusion.Blazor
@using Syncfusion.Blazor.Buttons
@using Syncfusion.Blazor.Spinner
<div>
<SfButton @onclick="@ClickHandler">Show/Hide Spinner</SfButton>
<div id="container">
<SfSpinner @bind-Visible="@VisibleProperty">
</SfSpinner>
</div>
</div>
@code{
private bool VisibleProperty { get; set; } = false;
private async Task ClickHandler()
{
this.VisibleProperty = true;
await Task.Delay(2000);
this.VisibleProperty = false;
}
}
You can find our Blazor Spinner demo here.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.