Files
simrsx-fe/app/components/pub/ui/table/Table.vue
Khafid Prayoga ae0acf84d0 refactor(ui): update import paths from @/lib/utils to ~/lib/utils
Standardize import paths across UI components to use ~/lib/utils alias instead of @/lib/utils for better consistency and maintainability.
2025-08-22 11:18:06 +07:00

18 lines
374 B
Vue

<script setup lang="ts">
import type { HTMLAttributes } from 'vue'
import { cn } from '~/lib/utils'
const props = defineProps<{
class?: HTMLAttributes['class']
}>()
</script>
<template>
<div class="relative w-full overflow-x-auto">
<table :class="cn('min-w-full table-fixed caption-bottom text-sm', props.class)">
<slot />
</table>
</div>
</template>