Blazorise is a component library built on top of Blazor and CSS frameworks like Bootstrap, Bulma and Material.
Please look at demos to see Blazorise in action.
- Bootstrap Demo
- Material Demo
- Bulma Demo (PREVIEW)
Note: This project is still experimental so it's possible that some components will be removed or refactored.
Each of the supported css framework is defined by a diferent nuget package. To install them you must run one of the following commands:
Install-Package Blazorise.Bootstrap
or
Install-Package Blazorise.Material
or
Install-Package Blazorise.Bulma
Note that Bulma implementation is still in progress.
The setup process is the same for all supported frameworks, just replace Bootstrap with the one you need.
Now, for a bootstrap framework you must do:
- in index.html add:
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
- In your main _ViewImports.cshtml add:
@addTagHelper *, Blazorise
@using Blazorise
- In Startup.cs add:
using Blazorise;
using Blazorise.Bootstrap;
public void ConfigureServices( IServiceCollection services )
{
services
.AddBootstrapProviders()
.AddIconProvider( IconProvider.FontAwesome );
}
To setup Blazorise for other frameworks please refer the Usage page in the documentation.