Bootstrap UI components for Blazor and Razor Components
$ dotnet add package BootstrapBlazorThis project is part of the .NET Foundation and operates under their Code Of Conduct
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
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.
This project is supported by the .NET Foundation.