-
Notifications
You must be signed in to change notification settings - Fork 100
Expand file tree
/
Copy pathLoadingExample2.razor
More file actions
38 lines (32 loc) · 1.78 KB
/
LoadingExample2.razor
File metadata and controls
38 lines (32 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@namespace MudExtensions.Docs.Examples
<MudGrid>
<MudItem xs="12" sm="8" Class="d-flex gap-4 align-center flex-wrap">
<MudPaper Class="mud-width-full" Style="height: 300px; position: relative">
<MudLoading @bind-Loading="_loading">
<LoaderContent>
<div class="mud-width-full mud-height-full d-flex flex-column align-center justify-center">
<MudStack Row="true" Spacing="2">
<MudIcon Icon="@Icons.Custom.Brands.MudBlazor" Color="Color.Tertiary" Size="Size.Small" />
<MudIcon Icon="@Icons.Custom.Brands.MudBlazor" Color="Color.Secondary" Size="Size.Medium" />
<MudIcon Class="loading-ani-example" Icon="@Icons.Custom.Brands.MudBlazor" Color="Color.Primary" Size="Size.Large" />
<MudIcon Icon="@Icons.Custom.Brands.MudBlazor" Color="Color.Secondary" Size="Size.Medium" />
<MudIcon Icon="@Icons.Custom.Brands.MudBlazor" Color="Color.Tertiary" Size="Size.Small" />
</MudStack>
</div>
</LoaderContent>
<ChildContent>
<MudText Class="pa-4">This is a text inside a paper.</MudText>
</ChildContent>
</MudLoading>
</MudPaper>
</MudItem>
<MudItem xs="12" sm="4">
<MudStack>
<MudSwitchM3 @bind-Value="_loading" Color="Color.Secondary">Loading</MudSwitchM3>
</MudStack>
</MudItem>
</MudGrid>
<MudAnimate Selector=".loading-ani-example" AnimationType="AnimationType.Rotate" Value="360" ValueSecondary="0" Duration="1" Infinite="true" />
@code {
bool _loading = true;
}