Skip to content

Commit df5c5e6

Browse files
committed
doc: 增加图标示例代码
1 parent e9f81bf commit df5c5e6

File tree

7 files changed

+35
-7
lines changed

7 files changed

+35
-7
lines changed

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)