<script setup lang="ts">
interface Props {
  density?: 'compact'
}
const props = defineProps<Props>()

const styleClass = computed(() => {
  const densityClass = props.density ? 'dui-table-compact' : ''
  return [densityClass]
})
</script>

<template>
  <table class="dui-table" :class="styleClass"><slot></slot></table>
</template>
