Files
Graphite/client/web/src/components/widgets/labels/TextLabel.vue
2021-07-31 04:58:25 -07:00

33 lines
488 B
Vue

<template>
<span class="text-label" :class="{ bold, italic }">
<slot></slot>
</span>
</template>
<style lang="scss">
.text-label {
white-space: nowrap;
line-height: 18px;
&.bold {
font-weight: bold;
}
&.italic {
font-style: italic;
}
}
</style>
<script lang="ts">
import { defineComponent } from "vue";
export default defineComponent({
components: {},
props: {
bold: { type: Boolean, default: false },
italic: { type: Boolean, default: false },
},
});
</script>