You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/docs/2.components/icon.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
description: A component to display any icon from Iconify.
2
+
description: A component to display any icon from Iconify or another component.
3
3
category: element
4
4
links:
5
5
- label: Icônes
@@ -27,6 +27,30 @@ It's highly recommended to install the icons collections you need, read more abo
27
27
:::
28
28
::
29
29
30
+
## Examples
31
+
32
+
### SVG
33
+
34
+
You can also pass a Vue component into the `name` prop:
35
+
36
+
::component-example
37
+
---
38
+
name: 'icon-svg-example'
39
+
---
40
+
::
41
+
42
+
You can define your icon components yourself, or use [`unplugin-icons`](https://github.com/unplugin/unplugin-icons) to import them directly from SVG files:
43
+
44
+
```vue
45
+
<script setup lang="ts">
46
+
import IconLightbulb from '~icons/lucide/lightbulb'
0 commit comments