mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
* fix(frontend): fixes after feedback * fix(frontend): fixes after feedback * fix(frontend): fixes after feedback
23 lines
538 B
Vue
23 lines
538 B
Vue
<template>
|
|
<IBiCheck v-if="props.icon === 'check'" class="icon-variant" />
|
|
<IBiXCircle v-if="props.icon === 'x-circle'" class="icon-variant" />
|
|
<IBiPersonFill v-if="props.icon === 'person-fill'" class="icon-variant" />
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref } from 'vue'
|
|
|
|
const props = defineProps({
|
|
icon: { type: String, default: '' },
|
|
variant: { type: String, default: 'success' },
|
|
})
|
|
|
|
const color = ref(`var(--bs-${props.variant}`)
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.icon-variant {
|
|
color: v-bind('color');
|
|
}
|
|
</style>
|