# IonIcons + VueJS

**URL:** <https://forum.ionicframework.com/t/ionicons-vuejs/216722>\
**Category:** Ionic Vue\
**Created:** [October 28, 2021, 1:05pm UTC](https://forum.ionicframework.com/t/ionicons-vuejs/216722 "2021-10-28T13:05:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jannisgo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jannisgo/32/139480_2.png) [@jannisgo](https://forum.ionicframework.com/u/jannisgo)\
**Post date:** [October 28, 2021, 1:05pm UTC](https://forum.ionicframework.com/t/ionicons-vuejs/216722/1 "2021-10-28T13:05:17Z")

</div>

Hello,  
I’d like to use ionic icons in my Vuejs ionic project. I created it using ionic CLI, but I can’t use them - they are just not displayed! Here some code snippets - can someone show me why there is no icon? In my TabBar the icons are working!

Thanks,  
Jannis

```auto
<ion-header collapse="condense">
        <ion-toolbar>
          <ion-title size="large">My Profile</ion-title>
          <ion-buttons slot="end">
            <ion-button @click="alert('Hi')">
              <ion-icon :name="cogOutline"></ion-icon>
            </ion-button>
          </ion-buttons>
        </ion-toolbar>
      </ion-header>

```

```auto
import {
  IonPage, IonHeader, IonToolbar, IonTitle, IonContent, IonCard, IonCardHeader, IonCardSubtitle, IonCardTitle, IonCardContent, IonIcon, IonButton, IonButtons, IonLabel
} from '@ionic/vue'
import { cogOutline } from 'ionicons/icons';

export default {
  name: 'Tab1',
  components: { IonHeader, IonToolbar, IonTitle, IonContent, IonPage, IonCard, IonCardHeader, IonCardSubtitle, IonCardTitle, IonCardContent, IonIcon, IonButton, IonButtons, IonLabel },
  setup(){
    return{
      cogOutline
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![Tommertom](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Tommertom](https://forum.ionicframework.com/u/Tommertom)\
**Post date:** [October 28, 2021, 1:18pm UTC](https://forum.ionicframework.com/t/ionicons-vuejs/216722/2 "2021-10-28T13:18:33Z")

</div>

> **[Ionic Vue Quickstart - Ionic Documentation](https://ionicframework.com/docs/vue/quickstart)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

U need to import the icon itself too

---

<div class="post-metadata">

**Author:** ![jannisgo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jannisgo/32/139480_2.png) [@jannisgo](https://forum.ionicframework.com/u/jannisgo)\
**Post date:** [October 28, 2021, 1:24pm UTC](https://forum.ionicframework.com/t/ionicons-vuejs/216722/3 "2021-10-28T13:24:36Z")

</div>

Isn’t it in the code I sent?:

> [@jannisgo](#):
>
> `import { cogOutline } from 'ionicons/icons';`

But I’m rather thinking that it is a problem with the Nav Header. If I’m writing some

or only Text instead of the Icon, there is NOTHING.

---

<div class="post-metadata">

**Author:** ![twestrick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/twestrick/32/136131_2.png) [@twestrick](https://forum.ionicframework.com/u/twestrick)\
**Post date:** [October 28, 2021, 1:27pm UTC](https://forum.ionicframework.com/t/ionicons-vuejs/216722/4 "2021-10-28T13:27:08Z")

</div>

You need to use `:icon`.

```auto
<ion-icon :icon="cogOutline" />

```
