File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed
Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 22title : Badge
33---
44
5+ import { Image } from " astro:assets" ;
56import Demo from " @components/Demo.astro" ;
67import PageSwitcher from " @components/PageSwitcher.astro" ;
78import Imports from " @components/examples/badge/Imports.astro" ;
9+ import badgeTypes from " @assets/badge-types.png" ;
810
911<Imports />
1012<PageSwitcher />
1113
12- ## Basic example
14+ ## Explanation of badge styles
15+
16+ The following badge styles have been implemented based on the VSCode UI:
17+
18+ 1 . Default style
19+ 2 . Activity bar counter
20+ 3 . Counter
21+ 4 . Tab bar counter
22+
23+ <Image
24+ src = { badgeTypes }
25+ alt = " Visual explanation of various badge styles"
26+ />
27+
28+ ## Default style
1329
1430<Demo >
1531 <vscode-badge >308 Settings Found</vscode-badge >
@@ -41,3 +57,14 @@ import Imports from "@components/examples/badge/Imports.astro";
4157 ```
4258 </Fragment >
4359</Demo >
60+
61+ ## Tab bar counter
62+
63+ <Demo >
64+ <vscode-badge variant = " activity-bar-counter" >42</vscode-badge >
65+ <Fragment slot = " html" >
66+ ``` html
67+ <vscode-badge variant =" tab-bar-counter" >42</vscode-badge >
68+ ```
69+ </Fragment >
70+ </Demo >
Original file line number Diff line number Diff line change 1010 "@data/*" : [
1111 " src/data/*"
1212 ],
13+ "@assets/*" : [
14+ " src/assets/*"
15+ ],
1316 }
1417 }
1518}
You can’t perform that action at this time.
0 commit comments