Bootstrap UI components extensions of Region Select
$ dotnet add package BootstrapBlazor.Regiongit clone https://github.com/dotnetcore/BootstrapBlazor.git
cd BootstrapBlazor/src/BootstrapBlazor.Server
dotnet run
dotnet add package BootstrapBlazor
_Imports.razor@using BootstrapBlazor.Components
MainLayout.razor<BootstrapBlazorRoot>
@Body
</BootstrapBlazorRoot>
it's either index.html or _Layout.cshtml/_Host.cshtml/App.razor depending on whether you're running WebAssembly or Server
<link rel="stylesheet" href="_content/BootstrapBlazor/css/bootstrap.blazor.bundle.min.css" />
<script src="_content/BootstrapBlazor/js/bootstrap.blazor.bundle.min.js"></script>
Program.csbuilder.Services.AddBootstrapBlazor();
<Display Value="@_text"></Display>
<Button Text="Button" OnClick="@ClickButton"></Button>
@code {
private string? _text;
private void ClickButton(MouseEventArgs e)
{
_text = DateTime.Now.ToString();
}
}
dotnet new install Bootstrap.Blazor.Templates::*
dotnet new bbapp