Skip to content

Commit ef20ad0

Browse files
erikmuellerbendera
authored andcommitted
Elaborate on link tag id prop for vscode-icon
1 parent 04b054a commit ef20ad0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/content/components/icon.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ import Imports from "@components/examples/icon/Imports.astro";
1818
```html
1919
<!--
2020
Download codicons from https://github.com/microsoft/vscode-codicons
21+
22+
Note the required `id` on the link element!
23+
To use web fonts in web components, the component needs to include
24+
the font stylesheet in addition to the page. This id serves as a lookup so
25+
the icon component can automatically create and insert it's own link tag.
2126
-->
2227
<link
2328
rel="stylesheet"

0 commit comments

Comments
 (0)