@indielayer/ui
Version:
Indielayer UI Components with Tailwind CSS build for Vue 3
17 lines (12 loc) • 402 B
text/typescript
import type { TableHeadTheme } from '../TableHead.vue'
const theme: TableHeadTheme = {
classes: {
thead: ({ props }) => {
const classes = ['align-bottom bg-secondary-100 dark:bg-secondary-700']
if (props.stickyHeader) classes.push('sticky top-0 z-10')
return classes
},
row: 'text-sm text-secondary-700 dark:text-secondary-200 border-b',
},
}
export default theme