Skip to content

Commit

Permalink
chore(#86): update tag component with icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Jul 11, 2023
1 parent 049206a commit a344471
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/Tag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@
:title="model"
:aria-label="model"
>
<span
<CTIcon
v-if="iconPosition === 'before'"
:class="`ct-icon ct-icon--${icon} ct-icon--size-small`"
:symbol="icon"
size="small"
/>
{{ model }}
<span
<CTIcon
v-if="iconPosition === 'after'"
:class="`ct-icon ct-icon--${icon} ct-icon--size-small`"
:symbol="icon"
size="small"
/>
</span>
</template>
Expand Down

0 comments on commit a344471

Please sign in to comment.