Skip to content
Snippets Groups Projects
PageHeader.vue 710 B
Newer Older
  • Learn to ignore specific revisions
  • <template>
    
        class="tw-flex tw-items-center tw-justify-between tw-mb-10 tw-border-solid tw-border-gray-200 tw-border-0 tw-border-b tw-pb-6"
      >
    
        <h1 class="tw-text-5xl tw-font-black tw-m-0">
    
          <SafeHTML
            v-if="lead"
            as="small"
            :html="lead"
            sanitize-preset="inline-noninteractive"
            class="tw-block tw-text-gray-300 tw-font-bold tw-text-4xl tw-mb-2"
          />
          <slot name="title">{{ title }}</slot>
    
        <div class="tw-flex tw-justify-end tw-gap-4">
          <slot />
        </div>
    
    </template>
    
    
    <script lang="ts" setup>
    import SafeHTML from '@/components/generic/SafeHTML'
    
    defineProps<{
      title?: string
      lead?: string
    }>()
    
    </script>