|  | 
| 11 | 11 | 
 | 
| 12 | 12 | <CarbonAds /> | 
| 13 | 13 | 
 | 
| 14 |  | -<SectionHeading Size="HeadingSize.H2" Text="Examples" PageUrl="@pageUrl" HashTagName="examples" /> | 
| 15 |  | -<div>Bootstrap includes several predefined button styles, each serving its own semantic purpose, with a few extras thrown in for more control.</div> | 
| 16 |  | -<Demo Type="typeof(Button_Demo_01_Examples)" /> | 
| 17 |  | - | 
| 18 |  | -<SectionHeading Size="HeadingSize.H2" Text="Button tags" PageUrl="@pageUrl" HashTagName="button-tags" /> | 
| 19 |  | -<Demo Type="typeof(Button_Demo_02_Button_Tags)" /> | 
| 20 |  | - | 
| 21 |  | -<SectionHeading Size="HeadingSize.H2" Text="Outline buttons" PageUrl="@pageUrl" HashTagName="outline-buttons" /> | 
| 22 |  | -<Demo Type="typeof(Button_Demo_03_Outline_Buttons)" /> | 
| 23 |  | - | 
| 24 |  | -<Callout Color="CalloutColor.Info"> | 
| 25 |  | -    Some of the button styles use a relatively light foreground color, and should only be used on a dark background in order to have sufficient contrast. | 
| 26 |  | -</Callout> | 
| 27 |  | - | 
| 28 |  | -<SectionHeading Size="HeadingSize.H2" Text="Sizes" PageUrl="@pageUrl" HashTagName="sizes" /> | 
| 29 |  | -<div>Fancy larger or smaller buttons? Add <code>Size="ButtonSize.Large"</code> or <code>Size="ButtonSize.Small"</code> for additional sizes.</div> | 
| 30 |  | -<Demo Type="typeof(Button_Demo_04_Sizes_A)" /> | 
| 31 |  | -<Demo Type="typeof(Button_Demo_04_Sizes_B)" /> | 
| 32 |  | -<Demo Type="typeof(Button_Demo_04_Sizes_C)" /> | 
| 33 |  | - | 
| 34 |  | -<SectionHeading Size="HeadingSize.H2" Text="Disabled state" PageUrl="@pageUrl" HashTagName="disabled-state" /> | 
| 35 |  | -<div>Make buttons look inactive by adding the <code>Disabled="true"</code> boolean parameter to any <code>Button</code> component. Disabled buttons have <code>pointer-events: none</code> applied to, preventing hover and active states from triggering.</div> | 
| 36 |  | - | 
| 37 |  | -<Callout Type="CalloutColor.Info"> | 
| 38 |  | -    Disabled buttons using the <code>Type="ButtonType.Link"</code> parameter behave a bit different. | 
| 39 |  | -</Callout> | 
| 40 |  | - | 
| 41 |  | -<Demo Type="typeof(Button_Demo_05_Disabled_State_A)" /> | 
| 42 |  | -<Demo Type="typeof(Button_Demo_05_Disabled_State_B)" /> | 
| 43 |  | - | 
| 44 |  | -<SectionHeading Size="HeadingSize.H2" Text="Disable and enable state dynamically" PageUrl="@pageUrl" HashTagName="disable-and-enable-state-dynamically" /> | 
| 45 |  | -<Demo Type="typeof(Button_Demo_13_Disable_Enable_Dynamically)" /> | 
| 46 |  | - | 
| 47 |  | -<SectionHeading Size="HeadingSize.H2" Text="Block buttons" PageUrl="@pageUrl" HashTagName="block-buttons" /> | 
| 48 |  | -<Demo Type="typeof(Button_Demo_06_Block_Buttons_A)" /> | 
| 49 |  | -<Demo Type="typeof(Button_Demo_06_Block_Buttons_B)" /> | 
| 50 |  | -<Demo Type="typeof(Button_Demo_06_Block_Buttons_C)" /> | 
| 51 |  | -<Demo Type="typeof(Button_Demo_06_Block_Buttons_D)" /> | 
| 52 |  | - | 
| 53 |  | -<SectionHeading Size="HeadingSize.H2" Text="Toggle states" PageUrl="@pageUrl" HashTagName="toggle-states" /> | 
| 54 |  | -<Demo Type="typeof(Button_Demo_07_Toggle_States_A)" /> | 
| 55 |  | -<Demo Type="typeof(Button_Demo_07_Toggle_States_B)" /> | 
| 56 |  | - | 
| 57 |  | -<SectionHeading Size="HeadingSize.H2" Text="Loading spinner" PageUrl="@pageUrl" HashTagName="loading-spinner" /> | 
| 58 |  | -<div>Use spinners within buttons to indicate an action is currently processing or taking place. You may also swap the text out of the spinner element and utilize button text as needed.</div> | 
| 59 |  | -<Demo Type="typeof(Button_Demo_08_Loading_Spinner)" /> | 
| 60 |  | - | 
| 61 |  | -<SectionHeading Size="HeadingSize.H2" Text="Show/Hide loading spinner" PageUrl="@pageUrl" HashTagName="show-hide-loading-spinner" /> | 
| 62 |  | -<Demo Type="typeof(Button_Demo_08_Show_Hide_Loading_Spinner)" Tabs="true" /> | 
| 63 |  | - | 
| 64 |  | -<SectionHeading Size="HeadingSize.H2" Text="Show Tooltip" PageUrl="@pageUrl" HashTagName="show-tooltip" /> | 
| 65 |  | -<div class="mb-3"> | 
| 66 |  | -    Hover over the buttons below to see the four tooltips directions: top, right, bottom, and left. | 
| 67 |  | -</div> | 
| 68 |  | -<Demo Type="typeof(Button_Demo_09_A_Show_Tooltip)" /> | 
| 69 |  | - | 
| 70 |  | -<SectionHeading Size="HeadingSize.H2" Text="Dynamically update the tooltip text" PageUrl="@pageUrl" HashTagName="dynamically-update-the-tooltip-text" /> | 
| 71 |  | -<Demo Type="typeof(Button_Demo_09_B_Dynamically_update_the_tooltip_text)" /> | 
| 72 |  | - | 
| 73 |  | -<SectionHeading Size="HeadingSize.H2" Text="Custom tooltips" PageUrl="@pageUrl" HashTagName="custom-tooltips" /> | 
| 74 |  | -<div class="mb-3"> | 
| 75 |  | -    Blazor Bootstrap includes several predefined tooltip styles, each serving its own semantic purpose. | 
| 76 |  | -    The <b>TooltipColor</b> parameter can be used to customize the color of the tooltip. | 
| 77 |  | -</div> | 
| 78 |  | -<Demo Type="typeof(Button_Demo_09_C_Tooltip_Color)" /> | 
| 79 |  | - | 
| 80 |  | -<Callout Color="CalloutColor.Warning"> | 
| 81 |  | -    Support for HTML tooltips is not available at this moment. | 
| 82 |  | -</Callout> | 
| 83 |  | - | 
| 84 |  | -<SectionHeading Size="HeadingSize.H2" Text="Click events" PageUrl="@pageUrl" HashTagName="click-events" /> | 
| 85 |  | -<Demo Type="typeof(Button_Demo_10_Click_Event)" /> | 
| 86 |  | -<Demo Type="typeof(Button_Demo_11_Double_Click_Event)" /> | 
| 87 |  | -<Demo Type="typeof(Button_Demo_12_Click_Event_With_Args)" /> | 
|  | 14 | +<Section Size="HeadingSize.H2" Text="Examples" PageUrl="@pageUrl" HashTagName="examples"> | 
|  | 15 | +    <div>Bootstrap includes several predefined button styles, each serving its own semantic purpose, with a few extras thrown in for more control.</div> | 
|  | 16 | +    <Demo Type="typeof(Button_Demo_01_Examples)" /> | 
|  | 17 | +</Section> | 
|  | 18 | + | 
|  | 19 | +<Section Size="HeadingSize.H2" Text="Button tags" PageUrl="@pageUrl" HashTagName="button-tags"> | 
|  | 20 | +    <Demo Type="typeof(Button_Demo_02_Button_Tags)" /> | 
|  | 21 | +</Section> | 
|  | 22 | + | 
|  | 23 | +<Section Size="HeadingSize.H2" Text="Outline buttons" PageUrl="@pageUrl" HashTagName="outline-buttons"> | 
|  | 24 | +    <Demo Type="typeof(Button_Demo_03_Outline_Buttons)" /> | 
|  | 25 | + | 
|  | 26 | +    <Callout Color="CalloutColor.Info"> | 
|  | 27 | +        Some of the button styles use a relatively light foreground color, and should only be used on a dark background in order to have sufficient contrast. | 
|  | 28 | +    </Callout> | 
|  | 29 | +</Section> | 
|  | 30 | + | 
|  | 31 | +<Section Size="HeadingSize.H2" Text="Sizes" PageUrl="@pageUrl" HashTagName="sizes"> | 
|  | 32 | +    <div>Fancy larger or smaller buttons? Add <code>Size="ButtonSize.Large"</code> or <code>Size="ButtonSize.Small"</code> for additional sizes.</div> | 
|  | 33 | +    <Demo Type="typeof(Button_Demo_04_Sizes_A)" /> | 
|  | 34 | +    <Demo Type="typeof(Button_Demo_04_Sizes_B)" /> | 
|  | 35 | +    <Demo Type="typeof(Button_Demo_04_Sizes_C)" /> | 
|  | 36 | +</Section> | 
|  | 37 | + | 
|  | 38 | +<Section Size="HeadingSize.H2" Text="Disabled state" PageUrl="@pageUrl" HashTagName="disabled-state"> | 
|  | 39 | +    <div>Make buttons look inactive by adding the <code>Disabled="true"</code> boolean parameter to any <code>Button</code> component. Disabled buttons have <code>pointer-events: none</code> applied to, preventing hover and active states from triggering.</div> | 
|  | 40 | + | 
|  | 41 | +    <Callout Type="CalloutColor.Info"> | 
|  | 42 | +        Disabled buttons using the <code>Type="ButtonType.Link"</code> parameter behave a bit different. | 
|  | 43 | +    </Callout> | 
|  | 44 | + | 
|  | 45 | +    <Demo Type="typeof(Button_Demo_05_Disabled_State_A)" /> | 
|  | 46 | +    <Demo Type="typeof(Button_Demo_05_Disabled_State_B)" /> | 
|  | 47 | +</Section> | 
|  | 48 | + | 
|  | 49 | +<Section Size="HeadingSize.H2" Text="Disable and enable state dynamically" PageUrl="@pageUrl" HashTagName="disable-and-enable-state-dynamically"> | 
|  | 50 | +    <Demo Type="typeof(Button_Demo_13_Disable_Enable_Dynamically)" /> | 
|  | 51 | +</Section> | 
|  | 52 | + | 
|  | 53 | +<Section Size="HeadingSize.H2" Text="Block buttons" PageUrl="@pageUrl" HashTagName="block-buttons"> | 
|  | 54 | +    <Demo Type="typeof(Button_Demo_06_Block_Buttons_A)" /> | 
|  | 55 | +    <Demo Type="typeof(Button_Demo_06_Block_Buttons_B)" /> | 
|  | 56 | +    <Demo Type="typeof(Button_Demo_06_Block_Buttons_C)" /> | 
|  | 57 | +    <Demo Type="typeof(Button_Demo_06_Block_Buttons_D)" /> | 
|  | 58 | +</Section> | 
|  | 59 | + | 
|  | 60 | +<Section Size="HeadingSize.H2" Text="Toggle states" PageUrl="@pageUrl" HashTagName="toggle-states"> | 
|  | 61 | +    <Demo Type="typeof(Button_Demo_07_Toggle_States_A)" /> | 
|  | 62 | +    <Demo Type="typeof(Button_Demo_07_Toggle_States_B)" /> | 
|  | 63 | +</Section> | 
|  | 64 | + | 
|  | 65 | +<Section Size="HeadingSize.H2" Text="Loading spinner" PageUrl="@pageUrl" HashTagName="loading-spinner"> | 
|  | 66 | +    <div>Use spinners within buttons to indicate an action is currently processing or taking place. You may also swap the text out of the spinner element and utilize button text as needed.</div> | 
|  | 67 | +    <Demo Type="typeof(Button_Demo_08_Loading_Spinner)" /> | 
|  | 68 | +</Section> | 
|  | 69 | + | 
|  | 70 | +<Section Size="HeadingSize.H2" Text="Show/Hide loading spinner" PageUrl="@pageUrl" HashTagName="show-hide-loading-spinner"> | 
|  | 71 | +    <Demo Type="typeof(Button_Demo_08_Show_Hide_Loading_Spinner)" Tabs="true" /> | 
|  | 72 | +</Section> | 
|  | 73 | + | 
|  | 74 | +<Section Size="HeadingSize.H2" Text="Show Tooltip" PageUrl="@pageUrl" HashTagName="show-tooltip"> | 
|  | 75 | +    <div class="mb-3"> | 
|  | 76 | +        Hover over the buttons below to see the four tooltips directions: top, right, bottom, and left. | 
|  | 77 | +    </div> | 
|  | 78 | +    <Demo Type="typeof(Button_Demo_09_A_Show_Tooltip)" /> | 
|  | 79 | +</Section> | 
|  | 80 | + | 
|  | 81 | +<Section Size="HeadingSize.H2" Text="Dynamically update the tooltip text" PageUrl="@pageUrl" HashTagName="dynamically-update-the-tooltip-text"> | 
|  | 82 | +    <Demo Type="typeof(Button_Demo_09_B_Dynamically_update_the_tooltip_text)" /> | 
|  | 83 | +</Section> | 
|  | 84 | + | 
|  | 85 | +<Section Size="HeadingSize.H2" Text="Custom tooltips" PageUrl="@pageUrl" HashTagName="custom-tooltips"> | 
|  | 86 | +    <div class="mb-3"> | 
|  | 87 | +        Blazor Bootstrap includes several predefined tooltip styles, each serving its own semantic purpose. | 
|  | 88 | +        The <b>TooltipColor</b> parameter can be used to customize the color of the tooltip. | 
|  | 89 | +    </div> | 
|  | 90 | +    <Demo Type="typeof(Button_Demo_09_C_Tooltip_Color)" /> | 
|  | 91 | + | 
|  | 92 | +    <Callout Color="CalloutColor.Warning"> | 
|  | 93 | +        Support for HTML tooltips is not available at this moment. | 
|  | 94 | +    </Callout> | 
|  | 95 | +</Section> | 
|  | 96 | + | 
|  | 97 | +<Section Size="HeadingSize.H2" Text="Click events" PageUrl="@pageUrl" HashTagName="click-events"> | 
|  | 98 | +    <Demo Type="typeof(Button_Demo_10_Click_Event)" /> | 
|  | 99 | +    <Demo Type="typeof(Button_Demo_11_Double_Click_Event)" /> | 
|  | 100 | +    <Demo Type="typeof(Button_Demo_12_Click_Event_With_Args)" /> | 
|  | 101 | +</Section> | 
| 88 | 102 | 
 | 
| 89 | 103 | @code { | 
| 90 | 104 |     private const string pageUrl = RouteConstants.Demos_Buttons_Documentation; | 
|  | 
0 commit comments