|
12 | 12 | <DocsLink Href="@RouteConstants.Docs_Button_Documentation" /> |
13 | 13 |
|
14 | 14 | <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> |
15 | 18 | <Demo Type="typeof(Button_Demo_01_How_it_works)" Tabs="true" /> |
16 | 19 | </Section> |
17 | 20 |
|
18 | 21 | <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> |
19 | 26 | <Demo Type="typeof(Button_Demo_02_Colors_A)" Tabs="true" /> |
20 | 27 | <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> |
21 | 31 | <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> |
22 | 35 | <Demo Type="typeof(Button_Demo_02_Colors_D_Dark_Version)" Tabs="true" /> |
23 | 36 | </Section> |
24 | 37 |
|
25 | 38 | <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> |
26 | 43 | <Demo Type="typeof(Button_Demo_03_Sizes_A)" Tabs="true" /> |
27 | 44 | <Demo Type="typeof(Button_Demo_03_Sizes_B_Multiple_Buttons_Size_Small)" Tabs="true" /> |
28 | 45 | <Demo Type="typeof(Button_Demo_03_Sizes_C_Multiple_Buttons_Size_Medium)" Tabs="true" /> |
|
31 | 48 | </Section> |
32 | 49 |
|
33 | 50 | <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> |
34 | 55 | <Demo Type="typeof(Button_Demo_04_Full_Width)" Tabs="true" /> |
35 | 56 | </Section> |
36 | 57 |
|
|
45 | 66 | </Section> |
46 | 67 |
|
47 | 68 | <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> |
48 | 73 | <Demo Type="typeof(Button_Demo_07_Loading)" Tabs="true" /> |
49 | 74 | </Section> |
50 | 75 |
|
51 | 76 | <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> |
52 | 80 | <Demo Type="typeof(Button_Demo_08_Disabled)" Tabs="true" /> |
53 | 81 | </Section> |
54 | 82 |
|
|
0 commit comments