|
11 | 11 |
|
12 | 12 | <DocsLink Href="@RouteConstants.Docs_Skeletons_Documentation" /> |
13 | 13 |
|
| 14 | +<div class="my-3">It is used to indicate that the content is being loaded and to provide a visual representation of the content that will be displayed.</div> |
| 15 | +<div>The <code>Skeleton</code> component can be used to create a loading state for any type of content, such as text, images, or other components.</div> |
| 16 | + |
14 | 17 | <Section Class="p-0" Size="HeadingSize.H3" Name="Skeleton block" PageUrl="@pageUrl" Link="skeleton-block"> |
15 | | - <Demo Type="typeof(Skeletons_Demo_01_Block_A)" Tabs="true" /> |
16 | | - <Demo Type="typeof(Skeletons_Demo_01_Block_B_Text_Inside)" Tabs="true" /> |
| 18 | + <div class="mb-3"> |
| 19 | + The skeleton block is a simple block element with a pulsating animation that can be used to indicate that content is being loaded. |
| 20 | + It has a minimum height of <b>4.5em</b>. |
| 21 | + </div> |
| 22 | + <Demo Type="typeof(Skeletons_Demo_01_Block_A)" Tabs="false" /> |
| 23 | + <div class="mb-3"> |
| 24 | + If you insert text inside this block, you can make its height dynamic: |
| 25 | + </div> |
| 26 | + <Demo Type="typeof(Skeletons_Demo_01_Block_B_Text_Inside)" Tabs="false" /> |
17 | 27 | </Section> |
18 | 28 |
|
19 | 29 | <Section Class="p-0" Size="HeadingSize.H3" Name="Skeleton lines" PageUrl="@pageUrl" Link="skeleton-lines"> |
| 30 | + <div class="mb-3"> |
| 31 | + The <code>SkeletonLine</code> is a simple line element which represents a paragraph. |
| 32 | + Each <code>SkeletonLine</code> will render as a separate loading line. |
| 33 | + </div> |
20 | 34 | <Demo Type="typeof(Skeletons_Demo_02_Lines_A_Default)" Tabs="true" /> |
21 | 35 | </Section> |
| 36 | + |
22 | 37 | <Section Class="p-0" Size="HeadingSize.H4" Name="Width" PageUrl="@pageUrl" Link="width"> |
| 38 | + <div class="mb-3"> |
| 39 | + You can set the width of the skeleton line by using the <code>Width</code> parameter. |
| 40 | + </div> |
23 | 41 | <Demo Type="typeof(Skeletons_Demo_02_Lines_B_Width)" Tabs="true" /> |
24 | 42 | </Section> |
| 43 | + |
25 | 44 | <Section Class="p-0" Size="HeadingSize.H4" Name="Colors" PageUrl="@pageUrl" Link="colors"> |
| 45 | + <div class="mb-3"> |
| 46 | + You can set the color of the skeleton line by using the <code>Color</code> parameter. |
| 47 | + In the following example, we set the color to <b>Primary</b>. |
| 48 | + </div> |
26 | 49 | <Demo Type="typeof(Skeletons_Demo_02_Lines_C_Colors_01)" Tabs="true" /> |
| 50 | + <div class="mb-3"> |
| 51 | + You can also set the color of the individual lines by using the <code>Color</code> parameter of the <code>SkeletonLine</code> component. |
| 52 | + In the following example, we set the color of the individual lines to different colors. |
| 53 | + </div> |
27 | 54 | <Demo Type="typeof(Skeletons_Demo_02_Lines_C_Colors_02)" Tabs="true" /> |
28 | 55 | </Section> |
29 | 56 |
|
30 | | -<Section Class="p-0" Size="HeadingSize.H3" Name="Components with skeletons" PageUrl="@pageUrl" Link="components-with-skeletons"> |
| 57 | +@* <Section Class="p-0" Size="HeadingSize.H3" Name="Components with skeletons" PageUrl="@pageUrl" Link="components-with-skeletons"> |
31 | 58 | <div></div> |
32 | | -</Section> |
| 59 | +</Section> *@ |
| 60 | + |
33 | 61 | <Section Class="p-0" Size="HeadingSize.H4" Name="Button" PageUrl="@pageUrl" Link="components-with-skeletons-button"> |
| 62 | + <div class="mb-3"> |
| 63 | + In the following example, we use IsSkeleton to show a skeleton loading state for a button. |
| 64 | + </div> |
34 | 65 | <Demo Type="typeof(Skeletons_Demo_03_Components_with_Skeletons_A_Button)" Tabs="true" /> |
35 | 66 | </Section> |
36 | | -<Section Class="p-0" Size="HeadingSize.H4" Name="Icon" PageUrl="@pageUrl" Link="components-with-skeletons-icon"> |
| 67 | + |
| 68 | +@* <Section Class="p-0" Size="HeadingSize.H4" Name="Icon" PageUrl="@pageUrl" Link="components-with-skeletons-icon"> |
37 | 69 | <Demo Type="typeof(Skeletons_Demo_03_Components_with_Skeletons_B_Icon)" Tabs="true" /> |
38 | | -</Section> |
| 70 | +</Section> *@ |
39 | 71 |
|
40 | 72 | @code { |
41 | 73 | private const string pageUrl = RouteConstants.Demos_Skeletons_Documentation; |
|
0 commit comments