22 lines
459 B
Vue
22 lines
459 B
Vue
<script setup lang="ts">
|
|
interface Props {
|
|
text?: string
|
|
label?: string
|
|
color?: string
|
|
}
|
|
|
|
const props = withDefaults(defineProps<Props>(), {
|
|
text: 'text',
|
|
color: 'primary',
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div class="d-flex align-center ga-1">
|
|
<v-chip v-if="props.label" size="small" :color="props.color" variant="flat" density="compact" :text="props.label" />
|
|
<div>{{ props.text }}</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped lang="scss"></style>
|