mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-13 13:48:26 +00:00
Update lucide-static.md (#2651)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user