26 lines
427 B
Vue
26 lines
427 B
Vue
<template>
|
|
<i :class="iconClass" aria-hidden="true">{{ icon }}</i>
|
|
</template>
|
|
|
|
<script setup>
|
|
import {computed} from "vue";
|
|
|
|
const props = defineProps({
|
|
type: {
|
|
type: String,
|
|
default: 'md'
|
|
},
|
|
icon: {
|
|
type: String,
|
|
required: true
|
|
}
|
|
});
|
|
|
|
const iconClass = computed(() => {
|
|
if (props.type === 'md') {
|
|
return ['material-icons'];
|
|
}
|
|
return null;
|
|
});
|
|
</script>
|