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: packages/docs/src/pages/en/features/icon-fonts.md
+54-28Lines changed: 54 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -439,12 +439,64 @@ app.mount('#app')
439
439
</template>
440
440
```
441
441
442
-
## Built-in aliases
442
+
## Icon aliases
443
443
444
-
The following icons are available as aliases for use in Vuetify components:
444
+
Icon aliases allow you to define short, reusable names for icons that can map to different sources — such as icon names from a set, local Vue components, or raw SVG paths. Aliases are referenced with an initial `$` followed by the name of the alias, e.g. `$product`. The following icons are available as aliases for use in Vuetify components:
445
445
446
446
<DocIconTable />
447
447
448
+
### Custom aliases
449
+
450
+
If you are developing custom Vuetify components, you can extend the `aliases` object to utilize the same functionality that internal Vuetify components use. This makes it easier to manage icons consistently throughout your project.
* $account and $closet render your own Vue component SVG icons.
495
+
* $mdiCustomAlias references an alias for the mdi-cow icon.
496
+
* $annotation references inline SVG path data.
497
+
498
+
This approach gives you flexibility: you can mix external libraries with your own icons seamlessly, while keeping your templates cleaner and easier to maintain.
499
+
448
500
## Multiple icon sets
449
501
450
502
Out of the box, Vuetify supports the use of multiple *different* icon sets at the same time. The following example demonstrates how to change the default icon font to Font Awesome (`fa`) while still maintaining access to the original Material Design Icons (`mdi`) through the use of a prefix:
If you are developing custom Vuetify components, you can extend the `aliases` object to utilize the same functionality that internal Vuetify components use. Icon aliases are referenced with an initial `$` followed by the name of the alias, e.g. `$product`.
0 commit comments