|
| 1 | +@page "/spinner" |
| 2 | + |
| 3 | +<PageTitle>@title</PageTitle> |
| 4 | + |
| 5 | +<MetaTags PageUrl="@pageUrl" Title="@title" Description="@description" ImageUrl="@imageUrl" /> |
| 6 | + |
| 7 | +<h1>Blazor Spinner</h1> |
| 8 | +<div class="lead mb-3"> |
| 9 | + Visualize the loading state of a component or page using the Blazor Bootstrap Spinner component. |
| 10 | +</div> |
| 11 | + |
| 12 | +@* <CarbonAds /> *@ |
| 13 | + |
| 14 | +<SectionHeading Size="HeadingSize.H2" Text="Border spinner" PageUrl="@pageUrl" HashTagName="border-spinner" /> |
| 15 | +<div class="mb-3">Use the border spinners for a lightweight loading indicator.</div> |
| 16 | +<Demo Type="typeof(Spinner_Demo_01_Border_Spinner)" /> |
| 17 | + |
| 18 | +<SectionHeading Size="HeadingSize.H2" Text="Colors" PageUrl="@pageUrl" HashTagName="colors" /> |
| 19 | +<div class="mb-3"> |
| 20 | + The border spinner's border color inherits the element's color (<code>currentColor</code>). This means you can easily customize the spinner's color by changing the <code>Color</code> parameter on the standard spinner. |
| 21 | +</div> |
| 22 | +<Demo Type="typeof(Spinner_Demo_02_Colors)" /> |
| 23 | + |
| 24 | +<SectionHeading Size="HeadingSize.H2" Text="Grow spinner" PageUrl="@pageUrl" HashTagName="grow-spinner" /> |
| 25 | +<div class="mb-3"> |
| 26 | + If you don't fancy a border spinner, switch to the grow spinner, while it doesn't technically spin, it does repeatedly grow! |
| 27 | +</div> |
| 28 | +<Demo Type="typeof(Spinner_Demo_03_Grow_spinner_A)" /> |
| 29 | +<Demo Type="typeof(Spinner_Demo_03_Grow_spinner_B)" /> |
| 30 | + |
| 31 | +<SectionHeading Size="HeadingSize.H2" Text="Loading dots spinner" PageUrl="@pageUrl" HashTagName="loading-dots-spinner" /> |
| 32 | +<div class="mb-3">The loading dots are a special indicator for a lightweight loading indicator.</div> |
| 33 | +<Demo Type="typeof(Spinner_Demo_04_Loading_dots_spinner_A)" /> |
| 34 | +<Demo Type="typeof(Spinner_Demo_04_Loading_dots_spinner_B)" /> |
| 35 | + |
| 36 | +<SectionHeading Size="HeadingSize.H2" Text="Alignment" PageUrl="@pageUrl" HashTagName="alignment" /> |
| 37 | +<SectionHeading Size="HeadingSize.H2" Text="Margin" PageUrl="@pageUrl" HashTagName="margin" /> |
| 38 | +<Demo Type="typeof(Spinner_Demo_05_Alignment_A_Margin)" /> |
| 39 | + |
| 40 | +<SectionHeading Size="HeadingSize.H2" Text="Placement" PageUrl="@pageUrl" HashTagName="placement" /> |
| 41 | +<SectionHeading Size="HeadingSize.H2" Text="Flex" PageUrl="@pageUrl" HashTagName="flex" /> |
| 42 | +<Demo Type="typeof(Spinner_Demo_05_Alignment_B_Palcement_Flex_01)" /> |
| 43 | +<Demo Type="typeof(Spinner_Demo_05_Alignment_B_Palcement_Flex_02)" /> |
| 44 | + |
| 45 | +<SectionHeading Size="HeadingSize.H2" Text="Floats" PageUrl="@pageUrl" HashTagName="floats" /> |
| 46 | +<Demo Type="typeof(Spinner_Demo_05_Alignment_C_Palcement_Floats)" /> |
| 47 | + |
| 48 | +<SectionHeading Size="HeadingSize.H2" Text="Text align" PageUrl="@pageUrl" HashTagName="text-align" /> |
| 49 | +<Demo Type="typeof(Spinner_Demo_05_Alignment_D_Palcement_Text_align)" /> |
| 50 | + |
| 51 | +<SectionHeading Size="HeadingSize.H2" Text="Size" PageUrl="@pageUrl" HashTagName="size" /> |
| 52 | +<Demo Type="typeof(Spinner_Demo_06_Size_A_Border)" /> |
| 53 | +<Demo Type="typeof(Spinner_Demo_06_Size_B_Grow)" /> |
| 54 | +<Demo Type="typeof(Spinner_Demo_06_Size_C_Dots)" /> |
| 55 | + |
| 56 | +<SectionHeading Size="HeadingSize.H2" Text="Visible" PageUrl="@pageUrl" HashTagName="visible" /> |
| 57 | +<Demo Type="typeof(Spinner_Demo_07_Visible)" /> |
| 58 | + |
| 59 | +@code{ |
| 60 | + private string pageUrl = "/spinner"; |
| 61 | + private string title = "Blazor Spinner Component"; |
| 62 | + private string description = "Visualize the loading state of a component or page using the Blazor Bootstrap Spinner component."; |
| 63 | + private string imageUrl = "https://i.imgur.com/273TamX.png"; // TODO: update this |
| 64 | +} |
0 commit comments