Skip to content

Commit 19e3ff4

Browse files
committed
Button - demos updated
1 parent 69fb83f commit 19e3ff4

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

BlazorExpress.Bulma.Demo.RCL/Pages/Demos/Button/ButtonDocumentation.razor

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,34 @@
1212
<DocsLink Href="@RouteConstants.Docs_Button_Documentation" />
1313

1414
<Section Class="p-0" Size="HeadingSize.H3" Name="Example" PageUrl="@pageUrl" Link="example">
15+
<Block>
16+
The <code>Button</code> component can be used like <b>link</b>, <b>button</b>, <b>submit button</b>, and <b>reset button</b>.
17+
</Block>
1518
<Demo Type="typeof(Button_Demo_01_How_it_works)" Tabs="true" />
1619
</Section>
1720

1821
<Section Class="p-0" Size="HeadingSize.H3" Name="Colors" PageUrl="@pageUrl" Link="colors">
22+
<Block>
23+
The <code>Button</code> component is available in a variety of colors.
24+
You can use the <code>Color</code> parameter to set the color of the button.
25+
</Block>
1926
<Demo Type="typeof(Button_Demo_02_Colors_A)" Tabs="true" />
2027
<Demo Type="typeof(Button_Demo_02_Colors_B)" Tabs="true" />
28+
<Block>
29+
Use <code>IsLightVersion</code> parameter to set the light version of the button with the <code>Color</code> parameter.
30+
</Block>
2131
<Demo Type="typeof(Button_Demo_02_Colors_C_Light_Version)" Tabs="true" />
32+
<Block>
33+
Use <code>IsDarkVersion</code> parameter to set the dark version of the button with the <code>Color</code> parameter.
34+
</Block>
2235
<Demo Type="typeof(Button_Demo_02_Colors_D_Dark_Version)" Tabs="true" />
2336
</Section>
2437

2538
<Section Class="p-0" Size="HeadingSize.H3" Name="Sizes" PageUrl="@pageUrl" Link="sizes">
39+
<Block>
40+
The <code>Button</code> component is available in 4 sizes: Small, Normal, Medium, and Large.
41+
Default value is <b>Normal</b>.
42+
</Block>
2643
<Demo Type="typeof(Button_Demo_03_Sizes_A)" Tabs="true" />
2744
<Demo Type="typeof(Button_Demo_03_Sizes_B_Multiple_Buttons_Size_Small)" Tabs="true" />
2845
<Demo Type="typeof(Button_Demo_03_Sizes_C_Multiple_Buttons_Size_Medium)" Tabs="true" />
@@ -31,6 +48,10 @@
3148
</Section>
3249

3350
<Section Class="p-0" Size="HeadingSize.H3" Name="Full width" PageUrl="@pageUrl" Link="full-width">
51+
<Block>
52+
Use <code>IsFullWidth</code> parameter to set the full width of the button.
53+
The button will take the full width of its parent container.
54+
</Block>
3455
<Demo Type="typeof(Button_Demo_04_Full_Width)" Tabs="true" />
3556
</Section>
3657

@@ -45,10 +66,17 @@
4566
</Section>
4667

4768
<Section Class="p-0" Size="HeadingSize.H3" Name="Loading" PageUrl="@pageUrl" Link="loading">
69+
<Block>
70+
The <code>Button</code> component can be used to show a loading state.
71+
Set <code>IsLoading</code> parameter to <b>true</b> to show the loading state.
72+
</Block>
4873
<Demo Type="typeof(Button_Demo_07_Loading)" Tabs="true" />
4974
</Section>
5075

5176
<Section Class="p-0" Size="HeadingSize.H3" Name="Disabled" PageUrl="@pageUrl" Link="disabled">
77+
<Block>
78+
Set <code>IsDisabled</code> parameter to <b>true</b> to disable the button.
79+
</Block>
5280
<Demo Type="typeof(Button_Demo_08_Disabled)" Tabs="true" />
5381
</Section>
5482

0 commit comments

Comments
 (0)