Ant blazor design

De Banane Atomic
Aller à la navigationAller à la recherche

Links

Input text with clear icon

Razor.svg
<Input @bind-Value="@MyProperty"
       Placeholder="My Placeholder"
       AllowClear="true"
       TValue="string"/>

Addition to a project

Bash.svg
dotnet add package AntDesign
Pages/_Host.cshtml
<link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet" />
<script src="_content/AntDesign/js/ant-design-blazor.js"></script>
Startup.cs
public void ConfigureServices(IServiceCollection services)
{
    services.AddAntDesign();
_Imports.razor
@using AntDesign