AstrolUI AstrolUI
Yellow Orange Red Green Blue Purple Custom color
Light mode
Load

1. Demo PartialLoad

This component displays an animation over its parent container to show the user that a response is pending after an action. The parent container must have position: relative (or any position other than static), because the overlay fills 100% of its width and height.

@using Astrol.Component.Basic.Load
<div style="height:150px;width:150px;overflow:hidden;position:relative;border:1px solid var(--color-dark);">
   <PartialLoad WidthAndHeightLoad="150" Status="statusPartialLoad" Icon="astrol-spin4" />
</div>
@code {
   private bool statusPartialLoad = true;
}

Supported parameters

  • Status (bool): whether the animation is displayed (default is false).
  • WidthAndHeightLoad (int): width and height in pixels of the box that holds the icon (default is 100 in PartialLoad and 150 in AstrolLoad).
  • Icon (string): icon to display, always animated (default is astrol-spin5).
    • astrol-spinner
    • astrol-spin1
    • astrol-spin2
    • astrol-spin3
    • astrol-spin4
    • astrol-spin5
    • astrol-spin6
These parameters are the same for PartialLoad and AstrolLoad.

2. Demo AstrolLoad

This component displays an animation over the whole page to show the user that a response is pending after an action. While Status is true, the overlay blocks interaction with the page.

@using Astrol.Component.Basic.Load
<AstrolLoad Status="statusLoad" />
<AstrolButton Text="Open Load" Style="AstrolStyle.Blue" OnClick="OpenLoad" />
@code {
   private bool statusLoad = false;
   private async Task OpenLoad() {
       statusLoad = true;
       await Task.Delay(1000); // your work here
       statusLoad = false;
   }
}
Markdown for AI © 2026 AstrolUI v10.0.13