« MudBlazor » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
Ligne 4 : Ligne 4 :


= [https://mudblazor.com/getting-started/installation Installation] =
= [https://mudblazor.com/getting-started/installation Installation] =
== New project ==
<kode lang='bash'>
<kode lang='bash'>
# install MudBlazor templates
# install MudBlazor templates
Ligne 14 : Ligne 15 :
dotnet new mudblazor --host server --output MudBlazor
dotnet new mudblazor --host server --output MudBlazor
</kode>
</kode>
== Already existing project ==
<kode lang='bash'>
dotnet add package MudBlazor
</kode>
<filebox fn='_Imports.razor'>
@using MudBlazor
</filebox>
<filebox fn='Pages/_Host.cshtml'>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
</filebox>

Version du 11 juillet 2023 à 22:15

Links

Installation

New project

Bash.svg
# install MudBlazor templates
dotnet new install MudBlazor.Templates

# help on new project
dotnet new mudblazor --help

# new server project named MudBlazor
dotnet new mudblazor --host server --output MudBlazor

Already existing project

Bash.svg
dotnet add package MudBlazor
_Imports.razor
@using MudBlazor
Pages/_Host.cshtml
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />

<script src="_content/MudBlazor/MudBlazor.min.js"></script>