<script setup lang="ts">
import { TableHead as ShadcnTableHead } from '@/components/core/table';
import type { UiTableHeadProps } from './types';

defineOptions({
  name: 'UiTableHead',
});

const props = withDefaults(defineProps<UiTableHeadProps>(), {
  scope: 'col',
});
</script>

<template>
  <ShadcnTableHead
    :colspan="props.colspan"
    :rowspan="props.rowspan"
    :scope="props.scope"
  >
    <slot />
  </ShadcnTableHead>
</template>
