I am currently utilizing the Element-Ui library for my project's frontend, but I have found that its icon library is quite limited. Due to this constraint, I have decided to use Material Design Icons instead. My question is how can I make the system recognize the icon stored in a variable within the code snippet below. I attempted a solution similar to the one provided, but it did not yield the desired outcome.
<template>
<el-button class="record-btn" v-if="isRecording" circle icon=svgPath2 @click="AudioRecorded"></el-button>
<el-button class="record-btn" v-else circle icon="svgPath1" @click="AudioRecorded" ></el-button>
</template>
<script>
import { mdiStop, mdiRecordRec } from '@mdi/js';
export default {
data () {
return {
svgPath1: mdiRecordRec,
svgPath2: mdiStop,
isRecording: false,
}
},
}
</script>