|
12 | 12 | <DocsLink Href="@RouteConstants.Docs_BootstrapIcons_Documentation" /> |
13 | 13 |
|
14 | 14 | <Section Class="p-0" Size="HeadingSize.H3" Name="Example" PageUrl="@pageUrl" Link="example"> |
15 | | - <Demo Type="typeof(BootstrapIcon_Demo_01_How_it_works)" Tabs="true" /> |
| 15 | + <Demo Type="typeof(BootstrapIcon_Demo_01_How_it_works)" Tabs="false" /> |
16 | 16 | </Section> |
17 | 17 |
|
18 | 18 | <Section Class="p-0" Size="HeadingSize.H3" Name="Icon text" PageUrl="@pageUrl" Link="icon-text"> |
19 | | - <Demo Type="typeof(BootstrapIcon_Demo_02_Icon_Text)" Tabs="true" /> |
| 19 | + <div class="mb-3"> |
| 20 | + You can show the icon with text by wrapping the text in a <code>BootstrapIcon</code> component. |
| 21 | + In the example below, the icon is shown with text on the right. |
| 22 | + </div> |
| 23 | + <Demo Type="typeof(BootstrapIcon_Demo_02_Icon_Text)" Tabs="false" /> |
20 | 24 | </Section> |
21 | 25 |
|
22 | 26 | <Section Class="p-0" Size="HeadingSize.H3" Name="Colors" PageUrl="@pageUrl" Link="colors"> |
23 | | - <Demo Type="typeof(BootstrapIcon_Demo_03_Icon_Colors_A)" Tabs="true" /> |
24 | | - <Demo Type="typeof(BootstrapIcon_Demo_03_Icon_Colors_B_Text_Color)" Tabs="true" /> |
| 27 | + <div class="mb-3"> |
| 28 | + Use <code>Color</code> parameter to set the color of the icon. |
| 29 | + In the example below, the icon is shown with different colors. |
| 30 | + </div> |
| 31 | + <Demo Type="typeof(BootstrapIcon_Demo_03_Icon_Colors_A)" Tabs="false" /> |
| 32 | + <div class="mb-3"> |
| 33 | + When icon with text is used, aldong with <code>Color</code> parameter, |
| 34 | + set <code>ApplyColorToText</code> to <code>true</code> to apply the color to the text as well. |
| 35 | + </div> |
| 36 | + <Demo Type="typeof(BootstrapIcon_Demo_03_Icon_Colors_B_Text_Color)" Tabs="false" /> |
25 | 37 | </Section> |
26 | 38 |
|
27 | 39 | <Section Class="p-0" Size="HeadingSize.H3" Name="Sizes" PageUrl="@pageUrl" Link="sizes"> |
|
32 | 44 | <Demo Type="typeof(BootstrapIcon_Demo_99_All_Icons)" Tabs="true" /> |
33 | 45 | </Section> |
34 | 46 |
|
35 | | -@code{ |
| 47 | +@code { |
36 | 48 | private const string pageUrl = RouteConstants.Demos_BootstrapIcons_Documentation; |
37 | 49 | private const string pageTitle = "Bootstrap Icons"; |
38 | 50 | private const string pageDescription = "The <code>BootstrapIcon</code> component will display an icon from any icon font."; |
|
0 commit comments