UI/Widgets/UILoadingState.razor

A small UI component written in a Razor file for Sandbox UI. It renders a loading spinner icon and a label that shows a configurable text, defaulting to a localization token.

@using Sandbox;
@using Sandbox.UI;
@inherits Panel
@namespace Sandbox

<root>
    <IconPanel class="spinner" Text="hourglass_empty" />
    <Label class="title" Text="@Text" />
</root>

@code
{
    /// <summary>
    /// What's being waited for, can be a localization token.
    /// </summary>
    [Parameter] public string Text { get; set; } = "#ui.common.loading_workshop";
}