<script setup lang="ts">
import type { HTMLAttributes } from "vue"
import { cn } from "@/lib/utils"

export interface TableCaptionProps {
  class?: HTMLAttributes["class"]
}

const props = defineProps<TableCaptionProps>()
</script>

<template>
  <caption :class="cn('mt-4 text-sm text-muted-foreground', props.class)">
    <slot />
  </caption>
</template>
