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;}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; }}