A fork of BlazorStyled by Chanan. CSS in Blazor Components
$ dotnet add package DataJuggler.BlazorStyled#News
11.14.2024: This project has been updated to .NET 9.
This project is a fork of BlazorStyled by Chanan. The only thing I did was updgrade the project for .NET 9, I updated all the referenced packages and remove the tests and other items and reduced the code down to just BlazorStyled.
CSS in Blazor Components
View the detailed docs at https://blazorstyled.io.
dotnet add package DataJuggler.BlazorStyled --version 9.0.0
Leave off the version to install the latest.
<Styled @bind-Classname="@hover">
label: hover-example;
padding: 32px;
background-color: hotpink;
font-size: 24px;
border-radius: 4px;
</Styled>
<Styled Classname="@hover" PseudoClass="PseudoClasses.Hover">
color: @color;
</Styled>
<div class="@hover">
Hover to change color.
</div>
@code {
private string hover;
private string color = "white";
}
See more in the docs at https://chanan.github.io/BlazorStyled/.