New Installs
_Imports.razor
For Bootstrap 4 @using BlazorStrap.V4
For Bootstrap 5 @using BlazorStrap.V5
In _Host.cshtml for server side or index.html for wasm add the following
For bootstrap 4.
- Head section
<link href="_content/BlazorStrap.V4/offcanvas.css" rel="stylesheet" /> or your custom version of it.
<link href=yourproject.styles.css" rel="stylesheet">
- End of Body section
<script src="_content/BlazorStrap/popper.min.js"></script>
<script src="_content/BlazorStrap/blazorstrap.js"></script>
For bootstrap 5.
In _Host.cshtml for server side or index.html for wasm add the following
- Head section
<link href=yourproject.styles.css" rel="stylesheet">
- End of Body section
<script src="_content/BlazorStrap/popper.min.js"></script>
<script src="_content/BlazorStrap/blazorstrap.js"></script>
Upgrading from BlazorStrap 5.0.x
Add @using BlazorStrap.V5 in your _Imports.razor
Add package https://www.nuget.org/packages/BlazorStrap.V5/5.1.100
Upgrading from BlazorStrap 1.x
There is no direct upgrade path as some components have changed names and/or parameters.
Please follow new install steps to get started.
New Installs
https://www.nuget.org/packages/BlazorStrap/5.1.10
For Bootstrap 4 https://www.nuget.org/packages/BlazorStrap.V4/5.1.100
For Bootstrap 5 https://www.nuget.org/packages/BlazorStrap.V5/5.1.100
_Imports.razor
For Bootstrap 4 @using BlazorStrap.V4
For Bootstrap 5 @using BlazorStrap.V5
In _Host.cshtml for server side or index.html for wasm add the following
For bootstrap 4.
<link href="_content/BlazorStrap.V4/offcanvas.css" rel="stylesheet" />or your custom version of it.<link href=yourproject.styles.css" rel="stylesheet"><script src="_content/BlazorStrap/popper.min.js"></script><script src="_content/BlazorStrap/blazorstrap.js"></script>For bootstrap 5.
In _Host.cshtml for server side or index.html for wasm add the following
<link href=yourproject.styles.css" rel="stylesheet"><script src="_content/BlazorStrap/popper.min.js"></script><script src="_content/BlazorStrap/blazorstrap.js"></script>Upgrading from BlazorStrap 5.0.x
Add @using BlazorStrap.V5 in your _Imports.razor
Add package https://www.nuget.org/packages/BlazorStrap.V5/5.1.100
Upgrading from BlazorStrap 1.x
There is no direct upgrade path as some components have changed names and/or parameters.
Please follow new install steps to get started.