block.vue 354 B

12345678910111213141516171819202122
  1. <script setup lang="ts">
  2. interface Props {
  3. title?: string;
  4. }
  5. defineOptions({
  6. name: 'PreferenceBlock',
  7. });
  8. withDefaults(defineProps<Props>(), {
  9. title: '',
  10. });
  11. </script>
  12. <template>
  13. <div class="flex flex-col py-4">
  14. <h3 class="mb-3 font-semibold leading-none tracking-tight">
  15. {{ title }}
  16. </h3>
  17. <slot></slot>
  18. </div>
  19. </template>