Graphite/frontend/src/components/window/title-bar/WindowTitle.vue

32 lines
603 B
Vue

<template>
<LayoutRow class="window-title">
<TextLabel>{{ text }}</TextLabel>
</LayoutRow>
</template>
<style lang="scss">
.window-title {
flex: 0 0 auto;
align-items: center;
white-space: nowrap;
padding: 0 8px;
}
</style>
<script lang="ts">
import { defineComponent, type PropType } from "vue";
import LayoutRow from "@/components/layout/LayoutRow.vue";
import TextLabel from "@/components/widgets/labels/TextLabel.vue";
export default defineComponent({
props: {
text: { type: String as PropType<string>, required: true },
},
components: {
LayoutRow,
TextLabel,
},
});
</script>