Files
speckle-server/packages/frontend-2/components/common/TitleDescription.vue
T
andrewwallacespeckle a6ead06873 feat(fe2) - Replace CommonEditableTitleDescription with new CommonTitleDescription (#2253)
* Make project & model headers non-editable

* Fixes from PR

* Add placeholder for description
2024-05-15 11:45:14 +02:00

17 lines
409 B
Vue

<template>
<div class="flex flex-col gap-2">
<h2 class="h3">{{ title }}</h2>
<p v-if="description" class="text-foreground-2">{{ description }}</p>
<p v-else class="text-foreground-2 italic select-none">No description</p>
</div>
</template>
<script setup lang="ts">
import type { Nullable } from '@speckle/shared'
defineProps<{
title: string
description?: Nullable<string>
}>()
</script>