radzenhq / radzen-blazor
- воскресенье, 24 января 2021 г. в 00:26:08
CSS
The home of the Radzen Blazor components.
The home of the Radzen Blazor components
Paid support for the Radzen Blazor Components is available as part of the Radzen Professional subscription.
Our flagship product Radzen provides tons of productivity features for Blazor developers:
Radzen Blazor Components are distributed as the Radzen.Blazor nuget package. You can add them to your project in one of the following ways
Open the _Imports.razor
file of your Blazor application and add this line @using Radzen.Blazor
.
Open the _Host.cshtml
file (server-side Blazor) or wwwroot/index.html
(client-side Blazor) and include a theme CSS file by adding this snippet <link rel="stylesheet" href="_content/Radzen.Blazor/css/default.css">
or <link rel="stylesheet" href="_content/Radzen.Blazor/css/default-base.css">
if you either include Bootstrap manually or don't use it at all.
Open the _Host.cshtml
file (server-side Blazor) or wwwroot/index.html
(client-side Blazor) and include this snippet <script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
Use any Radzen Blazor component by typing its tag name in a Blazor page e.g.
<RadzenButton Text="Hi"></RadzenButton>
<RadzenButton Text=@text />
<RadzenTextBox @bind-Value=@text />
@code {
string text = "Hi";
}
<RadzenButton Click="@ButtonClicked" Text="Hi"></RadzenButton>
@code {
void ButtonClicked()
{
}
}