change responsive]
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user