Skip to content

Commit 399c94c

Browse files
committed
Add icons info block
1 parent 6a3a03f commit 399c94c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/components/icons-info.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
To use the icons, the codicons.css file must be included in the page:
2+
3+
```html
4+
<link rel="stylesheet" href="path/to/codicon.css" id="vscode-codicon-stylesheet">
5+
```
6+
7+
:::caution
8+
Note the required `id` on the link element!
9+
To use web fonts in web components, the component needs to include
10+
the font stylesheet in addition to the page. This id serves as a lookup so
11+
the icon component can automatically create and insert it's own link tag.
12+
:::

0 commit comments

Comments
 (0)