mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Revert example
This commit is contained in:
@@ -4,19 +4,6 @@
|
||||
|
||||
Alerts are used to display important messages either inline or as toast notifications.
|
||||
|
||||
```html preview
|
||||
<div class="icon-reg">
|
||||
<sl-icon library="feather" name="feather"></sl-icon>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const container = document.querySelector('.icon-reg');
|
||||
const icon = container.querySelector('sl-icon');
|
||||
|
||||
icon.registerLibrary('feather', name => `https://cdn.jsdelivr.net/npm/feather-icons@4.28.0/dist/icons/${name}.svg`);
|
||||
</script>
|
||||
```
|
||||
|
||||
```html preview
|
||||
<sl-alert open>
|
||||
<sl-icon slot="icon" name="info-circle"></sl-icon>
|
||||
|
||||
Reference in New Issue
Block a user