26 lines
543 B
Vue
26 lines
543 B
Vue
<template>
|
|||
|
|
<div class="space-y-3">
|
||
|
|
<div class="min-w-0 space-y-1">
|
||
|
|
<div v-if="showTitle" class="text-lg font-700 text-gray-900">
|
||
|
|
<slot name="title">{{ title }}</slot>
|
||
|
|
</div>
|
||
|
|
<div v-if="subtitle || $slots.subtitle" class="text-xs text-gray-500">
|
||
|
|
<slot name="subtitle">{{ subtitle }}</slot>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script setup lang="ts">
|
||
|
|
withDefaults(
|
||
|
|
defineProps<{
|
||
|
|
title?: string
|
||
|
|
subtitle?: string
|
||
|
|
showTitle?: boolean
|
||
|
|
}>(),
|
||
|
|
{
|
||
|
|
showTitle: true
|
||
|
|
}
|
||
|
|
)
|
||
|
|
</script>
|