UNPKG

@indielayer/ui

Version:

Indielayer UI Components with Tailwind CSS build for Vue 3

22 lines (16 loc) 515 B
import type { TableRowTheme } from '../TableRow.vue' const theme: TableRowTheme = { classes: { row: ({ props }) => { const classes = [] if (props.striped) { classes.push('odd:bg-secondary-50 dark:odd:bg-secondary-800') } else { classes.push('border-b border-secondary-200 dark:border-secondary-700') } if (props.pointer) classes.push('hover:bg-secondary-50 dark:hover:bg-secondary-600 cursor-pointer') return classes }, }, } export default theme