gaoluyang
2026-06-24 b9a81d64cc965102c2adb70dee1d5a7397da5716
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
 
import { cn } from '../../../../../base/shared/src/utils';
 
const props = defineProps<{
  class?: HTMLAttributes['class'];
}>();
</script>
 
<template>
  <div
    data-slot="card-header"
    :class="
      cn(
        '@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6',
        props.class,
      )
    "
  >
    <slot></slot>
  </div>
</template>