vue-ionicons
Vue Icon Set Components from Ionic Team
Design Icons, sourced from the Ionicons project.
Getting started
-
Install the package
OR
-
Import the icon, and declare it as a local component:
OR
Declare it as a global component:
Note Icon files are kebab cased, e.g.
alert-circle.vue
, and
their default name has-icon
appended e.g.alert-circle-icon
. -
Then use it in your template code!
Icons
A list of the icons can be found at the Ionicons Repository
Tips
-
Use
resolve
in your Webpack config to clean up the imports:This will give you much shorter and more readable imports, like
import Android from 'icons/android'
, rather than
import Android from 'vue-ionicons/android.vue'
. Much better!