Table.vue 401 B

12345678910111213141516
  1. <script setup lang="ts">
  2. import type { HTMLAttributes } from "vue"
  3. import { cn } from "@/lib/utils"
  4. const props = defineProps<{
  5. class?: HTMLAttributes["class"]
  6. }>()
  7. </script>
  8. <template>
  9. <div data-slot="table-container" class="relative w-full overflow-auto">
  10. <table data-slot="table" :class="cn('w-full caption-bottom text-sm', props.class)">
  11. <slot />
  12. </table>
  13. </div>
  14. </template>