Skip to content

Commit 93abc08

Browse files
committed
Skeleton - demos updated
1 parent 13a23c7 commit 93abc08

1 file changed

Lines changed: 38 additions & 6 deletions

File tree

BlazorExpress.Bulma.Demo.RCL/Pages/Demos/Skeletons/SkeletonsDocumentation.razor

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,63 @@
1111

1212
<DocsLink Href="@RouteConstants.Docs_Skeletons_Documentation" />
1313

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+
1417
<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" />
1727
</Section>
1828

1929
<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>
2034
<Demo Type="typeof(Skeletons_Demo_02_Lines_A_Default)" Tabs="true" />
2135
</Section>
36+
2237
<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>
2341
<Demo Type="typeof(Skeletons_Demo_02_Lines_B_Width)" Tabs="true" />
2442
</Section>
43+
2544
<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>
2649
<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>
2754
<Demo Type="typeof(Skeletons_Demo_02_Lines_C_Colors_02)" Tabs="true" />
2855
</Section>
2956

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">
3158
<div></div>
32-
</Section>
59+
</Section> *@
60+
3361
<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>
3465
<Demo Type="typeof(Skeletons_Demo_03_Components_with_Skeletons_A_Button)" Tabs="true" />
3566
</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">
3769
<Demo Type="typeof(Skeletons_Demo_03_Components_with_Skeletons_B_Icon)" Tabs="true" />
38-
</Section>
70+
</Section> *@
3971

4072
@code {
4173
private const string pageUrl = RouteConstants.Demos_Skeletons_Documentation;

0 commit comments

Comments
 (0)