4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-14 05:06:37 +00:00
AzuraCast/frontend/vue/components/Common/Icon.vue
2022-12-29 15:15:05 -06:00

29 lines
448 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>