pull/422/head
Cory LaViska 2021-04-18 16:01:27 -04:00
rodzic bf2a4ac6cb
commit 19f01d29aa
1 zmienionych plików z 0 dodań i 12 usunięć

Wyświetl plik

@ -445,18 +445,6 @@ This example will load the same set of icons from the jsDelivr CDN instead of yo
</script>
```
Alternatively, you can replace the default icons with a completely different icon set. Just keep in mind that some of the default icons are used by components so you'll want to make sure those names resolve to an appropriate alternative.
```html
<script type="module">
import { registerIconLibrary } from '/shoelace/dist/utilities/icon-library.js';
registerIconLibrary('default', {
name => `/my/custom/icons/${name}.svg`
});
</script>
```
<!-- Supporting scripts and styles for the search utility -->
<script>
fetch('/dist/assets/icons/icons.json')