Skip to content

Commit 73e6f95

Browse files
authored
doc(Icon): add Icon sample code (#5278)
* chore: 更新依赖包 * doc: 增加图标示例代码
1 parent e654d66 commit 73e6f95

File tree

8 files changed

+40
-12
lines changed

8 files changed

+40
-12
lines changed

src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</ItemGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="BootstrapBlazor.AntDesignIcon" Version="9.0.0" />
23+
<PackageReference Include="BootstrapBlazor.AntDesignIcon" Version="9.0.1" />
2424
<PackageReference Include="BootstrapBlazor.AzureOpenAI" Version="9.0.0" />
2525
<PackageReference Include="BootstrapBlazor.AzureTranslator" Version="9.0.0" />
2626
<PackageReference Include="BootstrapBlazor.BaiduSpeech" Version="9.0.0" />
@@ -33,22 +33,22 @@
3333
<PackageReference Include="BootstrapBlazor.Dock" Version="9.0.0" />
3434
<PackageReference Include="BootstrapBlazor.DockView" Version="9.0.3" />
3535
<PackageReference Include="BootstrapBlazor.DriverJs" Version="9.0.0" />
36-
<PackageReference Include="BootstrapBlazor.ElementIcon" Version="9.0.0" />
36+
<PackageReference Include="BootstrapBlazor.ElementIcon" Version="9.0.1" />
3737
<PackageReference Include="BootstrapBlazor.FileViewer" Version="9.0.0" />
3838
<PackageReference Include="BootstrapBlazor.FontAwesome" Version="9.0.2" />
3939
<PackageReference Include="BootstrapBlazor.Gantt" Version="9.0.2" />
4040
<PackageReference Include="BootstrapBlazor.Holiday" Version="9.0.1" />
4141
<PackageReference Include="BootstrapBlazor.Html2Pdf" Version="9.0.1" />
42-
<PackageReference Include="BootstrapBlazor.IconPark" Version="9.0.0" />
42+
<PackageReference Include="BootstrapBlazor.IconPark" Version="9.0.1" />
4343
<PackageReference Include="BootstrapBlazor.ImageCropper" Version="9.0.0" />
4444
<PackageReference Include="BootstrapBlazor.Live2DDisplay" Version="9.0.1" />
4545
<PackageReference Include="BootstrapBlazor.Markdown" Version="9.0.1" />
46-
<PackageReference Include="BootstrapBlazor.MaterialDesign" Version="9.0.0" />
46+
<PackageReference Include="BootstrapBlazor.MaterialDesign" Version="9.0.1" />
4747
<PackageReference Include="BootstrapBlazor.MeiliSearch" Version="9.1.7" />
4848
<PackageReference Include="BootstrapBlazor.Mermaid" Version="9.0.3" />
4949
<PackageReference Include="BootstrapBlazor.MindMap" Version="9.1.3" />
5050
<PackageReference Include="BootstrapBlazor.MouseFollower" Version="9.0.1" />
51-
<PackageReference Include="BootstrapBlazor.OctIcon" Version="9.0.0" />
51+
<PackageReference Include="BootstrapBlazor.OctIcon" Version="9.0.1" />
5252
<PackageReference Include="BootstrapBlazor.OnScreenKeyboard" Version="9.0.1" />
5353
<PackageReference Include="BootstrapBlazor.PdfReader" Version="9.0.0" />
5454
<PackageReference Include="BootstrapBlazor.Player" Version="9.0.0" />

src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222

2323
<Pre>&lt;link href="_content/BootstrapBlazor.AntDesignIcon/BootstrapBlazor.AntDesignIcon.bundle.scp.css" rel="stylesheet"&gt;</Pre>
2424

25-
<Pre>&lt;AntDesignIcon Category="AntDesignIconCategory.Outlined" Name="account-book"&gt;&lt;AntDesignIcon&gt;</Pre>
25+
<div class="mb-2">
26+
<AntDesignIcon Category="AntDesignIconCategory.Outlined" Name="github"></AntDesignIcon>
27+
</div>
28+
29+
<Pre>&lt;AntDesignIcon Category="AntDesignIconCategory.Outlined" Name="github"&gt;&lt;/AntDesignIcon&gt;</Pre>
2630

2731
<div>@((MarkupString)Localizer["Icons"].Value)</div>

src/BootstrapBlazor.Server/Components/Samples/Icons/BootstrapIcons.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
<Pre>&lt;link href="_content/BootstrapBlazor.BootstrapIcon/css/bootstrap.min.css" rel="stylesheet"&gt;</Pre>
1616

17-
<Pre>&lt;i class="bi bi-save"&gt;&lt;/i&gt;</Pre>
17+
<div class="mb-2">
18+
<i class="bi bi-github"></i>
19+
</div>
20+
21+
<Pre>&lt;i class="bi bi-github"&gt;&lt;/i&gt;</Pre>
1822

1923
<div>@((MarkupString)Localizer["Icons"].Value)</div>

src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222

2323
<Pre>&lt;link href="_content/BootstrapBlazor.ElementIcon/BootstrapBlazor.ElementIcon.bundle.scp.css" rel="stylesheet"&gt;</Pre>
2424

25-
<Pre>&lt;ElementIcon Name="add-location"&gt;&lt;ElementIcon&gt;</Pre>
25+
<div class="mb-2">
26+
<ElementIcon Name="upload-filled"></ElementIcon>
27+
</div>
28+
29+
<Pre>&lt;ElementIcon Name="upload-filled"&gt;&lt;/ElementIcon&gt;</Pre>
2630

2731
<div>@((MarkupString)Localizer["Icons"].Value)</div>

src/BootstrapBlazor.Server/Components/Samples/Icons/FAIcons.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
<Pre>&lt;link href="_content/BootstrapBlazor.FontAwesome/css/font-awesome.min.css" rel="stylesheet"&gt;</Pre>
1616

17-
<Pre>&lt;i class="fa-solid fa-home"&gt;&lt;/i&gt;</Pre>
17+
<div class="mb-2">
18+
<i class="fa-brands fa-github"></i>
19+
</div>
20+
21+
<Pre>&lt;i class="fa-brands fa-github"&gt;&lt;/i&gt;</Pre>
1822

1923
<div>@((MarkupString)Localizer["Icons"].Value)</div>

src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222

2323
<Pre>&lt;link href="_content/BootstrapBlazor.IconPark/BootstrapBlazor.IconPark.bundle.scp.css" rel="stylesheet"&gt;</Pre>
2424

25-
<Pre>&lt;ByteDanceIcon Name="abdominal"&gt;&lt;ByteDanceIcon&gt;</Pre>
25+
<div class="mb-2">
26+
<ByteDanceIcon Name="github"></ByteDanceIcon>
27+
</div>
28+
29+
<Pre>&lt;ByteDanceIcon Name="github"&gt;&lt;/ByteDanceIcon&gt;</Pre>
2630

2731
<div>@((MarkupString)Localizer["Icons"].Value)</div>

src/BootstrapBlazor.Server/Components/Samples/Icons/MaterialDesignIcons.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
<Pre>&lt;link href="_content/BootstrapBlazor.MaterialDesign/css/md.min.css" rel="stylesheet"&gt;</Pre>
1616

17-
<Pre>&lt;i class="mdi mdi-ab-testing"&gt;&lt;/i&gt;</Pre>
17+
<div class="mb-2">
18+
<i class="mdi mdi-github"></i>
19+
</div>
20+
21+
<Pre>&lt;i class="mdi mdi-github"&gt;&lt;/i&gt;</Pre>
1822

1923
<div>@((MarkupString)Localizer["Icons"].Value)</div>

src/BootstrapBlazor.Server/Components/Samples/Icons/OctIcons.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222

2323
<Pre>&lt;link href="_content/BootstrapBlazor.OctIcon/BootstrapBlazor.OctIcon.bundle.scp.css" rel="stylesheet"&gt;</Pre>
2424

25-
<Pre>&lt;OctIcon Name="accessibility-16"&gt;&lt;OctIcon&gt;</Pre>
25+
<div class="mb-2">
26+
<OctIcon Name="mark-github-16"></OctIcon>
27+
</div>
28+
29+
<Pre>&lt;OctIcon Name="mark-github-16"&gt;&lt;/OctIcon&gt;</Pre>
2630

2731
<div>@((MarkupString)Localizer["Icons"].Value)</div>

0 commit comments

Comments
 (0)