# Blazorise
**Repository Path**: dj2792/Blazorise
## Basic Information
- **Project Name**: Blazorise
- **Description**: Blazorise is a component library built on top of Blazor and CSS frameworks like Bootstrap, Bulma and Material.
- **Primary Language**: C#
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2021-01-22
- **Last Updated**: 2021-09-21
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README

# Components for Blazor
[](https://www.nuget.org/profiles/stsrki) 
[](https://gitter.im/stsrki/Blazorise?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://join.slack.com/t/blazorise/shared_invite/enQtNjQ3NTcyNzM2OTk0LTIyNDBiYTRkNmI4NDU0NzU5NTEyOGFlMGE1ZmQ2YzI4ZTc1OWE3NDkwMGRjOGEwOTY2YjQ1NWQxZDhiN2Q1Yjk)
[](LICENSE)
[](https://www.paypal.me/mladenmacanovic)
[](https://www.buymeacoffee.com/mladenmacanovic)
Blazorise is a component library built on top of [Blazor](https://blazor.net/) and CSS frameworks like Bootstrap, Bulma and Material.
## Demos
### Client-Side Blazor
- [Bootstrap Demo](https://bootstrapdemo.blazorise.com)
- [Material Demo](https://materialdemo.blazorise.com/)
- [Bulma Demo](https://bulmademo.blazorise.com/)
- [eFrolic Demo](https://efrolicdemo.blazorise.com/)
### Server-Side Blazor
- [Bootstrap Demo](https://rcbootstrapdemo.blazorise.com/)
```
Note: This project is still experimental so it's possible that some components will be removed or refactored.
```
[Releases](https://blazorise.com/docs/releases/) and [Roadmap](https://github.com/stsrki/Blazorise/issues/88)
## Prerequisites
Before you continue please make sure you have upgraded your project for the latest version of [Blazor](https://dotnet.microsoft.com/apps/aspnet/web-apps/client). Please look at the [official](https://devblogs.microsoft.com/aspnet/blazor-now-in-official-preview/) blog post to find all the required steps.
## Installations
There are 4 diferent NuGet packages for each of the supported CSS frameworks. Available packages are:
```
Install-Package Blazorise.Bootstrap
Install-Package Blazorise.Bulma
Install-Package Blazorise.Material
Install-Package Blazorise.Frolic
```
Choose one of them and modify your source files and your code accordingly. This guide will show you how to setup Blazorise with **Bootstrap** provider and FontAwesome icons.
### NuGet packages
First step is to install a Bootstrap provider for Blazorise:
```
Install-Package Blazorise.Bootstrap
```
You also need to install the icon package:
```
Install-Package Blazorise.Icons.FontAwesome
```
### Source files
The next step is to change your `index.html` file located in the _wwwroot_folder and include the following css and js source files:
```html
```
---
**NOTE**
Don't forget to remove default **bootstrap** css and js files that comes with the Blazor/RC project template. If you forget to remove them it's possible that some of component will not work as they should be.
---
### Usings
In your main _Imports.razor add:
```cs
@using Blazorise
```
### Registrations
Finally in the Startup.cs you must tell the Blazor to register Bootstrap provider and extensions:
```cs
using Blazorise;
using Blazorise.Bootstrap;
using Blazorise.Icons.FontAwesome;
public void ConfigureServices( IServiceCollection services )
{
services
.AddBlazorise( options =>
{
options.ChangeTextOnKeyPress = true; // optional
} )
.AddBootstrapProviders()
.AddFontAwesomeIcons();
}
```
### Client-Side
```
public void Configure( IComponentsApplicationBuilder app )
{
app.Services
.UseBootstrapProviders()
.UseFontAwesomeIcons();
app.AddComponent( "app" );
}
```
### Server-Side
```
public void Configure( IComponentsApplicationBuilder app )
{
...
app.UseRouting();
app.ApplicationServices
.UseBootstrapProviders()
.UseFontAwesomeIcons();
app.UseEndpoints( endpoints =>
{
endpoints.MapBlazorHub();
endpoints.MapFallbackToPage( "/_Host" );
} );
}
```
This step is mandatory only for projects built on top of Server-Side Blazor(Razor Components)! For Client-Side Blazor projects this step is not required! Normally these files would be downloaded automatically by the framework but since Razor Components still doesn't support static files inside of class library you will need to manually include required js and css files into your project. Once the Blazor/RC team implements this feature this step will not we required.
First you must download **bundle.zip** from the [release](https://github.com/stsrki/Blazorise/releases) tab and extract it to your _wwwroot_ folder. After extraction you will have to include files in your Index.cshtml eg.
```
etc.
```
There is also another option. You can try the library [BlazorEmbedLibrary](https://github.com/SQL-MisterMagoo/BlazorEmbedLibrary). Full instruction on how to use it can be found on their project page.
## Other frameworks
To setup Blazorise for other css frameworks please refer the [Usage](https://blazorise.com/docs/usage/) page in the documentation.