Update lucide-static.md (#2651)

This commit is contained in:
nuclearcodecat
2024-12-04 09:48:15 +01:00
committed by GitHub
parent 4f740348cd
commit 7773135308
+6 -6
View File
@@ -43,7 +43,7 @@ bun add lucide-static
```html
<!-- SVG file for a single icon -->
<img src="https://unpkg.com/lucide-static@latest/icons/home.svg" />
<img src="https://unpkg.com/lucide-static@latest/icons/house.svg" />
<!-- Icon font -->
<style>
@@ -66,12 +66,12 @@ To use it in for example html:
```html
<!-- SVG file for a single icon -->
<img src="~lucide-static/icons/home.svg" />
<img src="~lucide-static/icons/house.svg" />
```
```css
.home-icon {
background-image: url(~lucide-static/icons/home.svg);
.house-icon {
background-image: url(~lucide-static/icons/house.svg);
}
```
@@ -94,7 +94,7 @@ You may need additional loader for this.
```html
<!-- Icon Sprite, not recommended for production! -->
<img src="lucide-static/sprite.svg#home" />
<img src="lucide-static/sprite.svg#house" />
<!-- or -->
<svg
@@ -151,7 +151,7 @@ and update the SVG as follows
```
```html
<div class="icon-home"></div>
<div class="icon-house"></div>
```
### Node.js