We do not include bootstrap.min.css in the package. This already exists in the blazor wasm and blazor server side templates.
-
Core Package handles all the logic / JSInterop
-
Display packages. These packages so the rendered components. V5 is for Bootstrap 5. V4 is for Bootstrap 4
-
Pre Release
- Modify your index.html with the following.
- Inside the
<head>
add<link href="YourAssemblyName.styles.css" rel="stylesheet">
)<link href="path_to_bootstrap.min.css" rel="stylesheet" integrity="if_needed" />"
- At the end of the
<body>
add<script src="_content/BlazorStrap/popper.min.js"></script>
- Inside the
- In
Program.cs
addbuilder.Services.AddBlazorStrap();
- In
_Imports.razor
add@using BlazorStrap.V5
- Modify your _host.cshtml with the following.
- Inside the
<head>
add<link href="YourAssemblyName.styles.css" rel="stylesheet">
<link href="path_to_bootstrap.min.css" rel="stylesheet" integrity="if_needed" />"
- At the end of the
<body>
add<script src="_content/BlazorStrap/popper.min.js"></script>
- Inside the
- In
Program.cs
orStartup.cs
addServices.AddBlazorStrap();
to your build pipeline
- In
_Imports.razor
add@using BlazorStrap.V5
We do not include bootstrap.min.css in the package. This already exists in the blazor wasm and blazor server side templates.
- Modify your index.html with the following.
- Inside the
<head>
add<link href="YourAssemblyName.styles.css" rel="stylesheet">
)<link href="path_to_bootstrap.min.css" rel="stylesheet" integrity="if_needed" />"
- At the end of the
<body>
add<script src="_content/BlazorStrap/popper.min.js"></script>
- Inside the
- In
Program.cs
addbuilder.Services.AddBlazorStrap();
- In
_Imports.razor
add@using BlazorStrap.V4
- Modify your _host.cshtml with the following.
- Inside the
<head>
add<link href="YourAssemblyName.styles.css" rel="stylesheet">
<link href="path_to_bootstrap.min.css" rel="stylesheet" integrity="if_needed" />"
- At the end of the
<body>
add<script src="_content/BlazorStrap/popper.min.js"></script>
- Inside the
- In
Program.cs
orStartup.cs
addServices.AddBlazorStrap();
to your build pipeline
- In
_Imports.razor
add@using BlazorStrap.V4