-
-
Notifications
You must be signed in to change notification settings - Fork 156
Closed
Description
Is it possible to dynamically use icons?
I'm using the vitesse template and would previously use something like <Icon :icon="myIconVariable" /> but now it seems like that no longer exists so I was wondering if it is still possible to do something like that.
I tried something like this without much luck
<template>
<component :is="myIconVariable.replace(':', '-')" />
</template>
<script setup>
const myIconVariable = 'mdi:vuejs'
</script>Rolanddoda, sadeghbarati, jongbonga, rubebop and Dev-otchkaWRtux
Metadata
Metadata
Assignees
Labels
No labels