Custom icons
The <UIcon>
component also supports custom SVG icons. To use a custom icon, import it with the suffix ?component
and pass the imported component in the :src
prop.
Custom library
To reference all icons from your project, specify your library path in the config.
vueless.config.js
In this case, the library name should be custom-icons
, which is a predefined name.
Afterward, you can use the icons by passing the prop name in the <UIcon>
component.
Last updated